mirror of
https://github.com/bellingcat/snscrape.git
synced 2026-06-11 11:58:28 +03:00
Add warning if Twitter module gets no results
This commit is contained in:
@@ -98,6 +98,7 @@ class TwitterSearchScraper(snscrape.base.Scraper):
|
||||
|
||||
feed, maxPosition = self._get_feed_from_html(r.text, True)
|
||||
if not feed:
|
||||
logger.warning(f'No results for {self._query}')
|
||||
return
|
||||
yield from self._feed_to_items(feed)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user