JustAnotherArchivist / JustAnotherArchivist/snscrape

URL parsing assertion fails for VKontakteUserScraper

Open
#420 0 comments 0 reactions 0 assignees View on GitHub
bug module:vkontakte
Dominant language
Python
Stars
5.4k
Forks
783
PR merge metrics
No merged PRs in 30d

Description

OS: Ubuntu 20.04
Python: 3.8.10
snscrape: 0.4.3.20220106

The command `snscrape vkontakte-user rus_imperia` fails after 7868 posts, because the url `'https://vk.com/wall-35251260_28090?reply=28125&thread=28091'` doesn't satisfy the `url.rsplit('_', 1)[1].strip('0123456789') in ('', '?reply=')` clause of the assertion on line 157 of snscrape.modules.vkontakte.py

One way of addressing this could be to change the assertion line from:

```
assert ...
```
to:

```
if not ...:
return
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.