Closed jodizzle closed 5 years ago
twitter-hashtag strache
, twitter-search "strache video"
2019-05-18 08:04:46.241 CRITICAL snscrape.cli Local variables logged to /tmp/snscrape_locals_3n8bef1r
Traceback (most recent call last):
File "/usr/local/bin/snscrape", line 10, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/snscrape/cli.py", line 111, in main
for i, item in enumerate(scraper.get_items(), start = 1):
File "/usr/local/lib/python3.7/site-packages/snscrape/modules/twitter.py", line 115, in get_items
yield from self._feed_to_items(feed)
File "/usr/local/lib/python3.7/site-packages/snscrape/modules/twitter.py", line 51, in _feed_to_items
date = datetime.datetime.fromtimestamp(int(tweet.find('a', 'tweet-timestamp').find('span', '_timestamp')['data-time']), datetime.timezone.utc)
AttributeError: 'NoneType' object has no attribute 'find'
This should be fixed by 7989af27. At least I can't reproduce it with the examples given. Please reopen if it reoccurs.
Here's the error, from the tail end of a log file with increased verbosity:
The hashtag being collected was 'MaduroRegime'. It also seems to be reproducible, at least on my end, and at least within a short time frame.