Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mastodon: Crash when attempting to retrieve data from Mastodon servers running v4.0.0 #587

Open
caseyho opened this issue Nov 9, 2022 · 1 comment
Labels
bug Something isn't working module:mastodon

Comments

@caseyho
Copy link
Contributor

caseyho commented Nov 9, 2022

Crash occurs when attempting to retrieve data from a user profile at mastodon.social (v4.0.0rc1) or mstdn.social (v4.0.0rc1) while using snscrape 0.4.3.20220107.dev64+g59abeaf

Crash does not occur when retrieving data from servers running earlier versions of Mastodon (3.x.x)

Doing so yields the following stack trace:

Traceback (most recent call last):
  File "[path-to-lib]\site-packages\snscrape\_cli.py", line 116, in _dump_locals_on_exception
    yield
  File "[path-to-lib]\site-packages\snscrape\_cli.py", line 318, in main
    for i, item in enumerate(scraper.get_items(), start = 1):
  File "[path-to-lib]\site-packages\snscrape\modules\mastodon.py", line 279, in get_items
    yield from self._entries_to_items(soup.find('div', class_ = 'activity-stream').find_all('div', class_ = 'entry'), r.url)
AttributeError: 'NoneType' object has no attribute 'find_all'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module:mastodon
Projects
None yet
Development

No branches or pull requests

3 participants