Skip to content

Commit

Permalink
Fixing stop condition of tweet scraper
Browse files Browse the repository at this point in the history
Fix #934
  • Loading branch information
Yomguithereal committed Feb 15, 2024
1 parent e8dc175 commit a91c22f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions minet/twitter/api_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,9 @@ def search_tweets(
query, locale, cursor, refs=refs
)

if not tweets:
return

for tweet, meta in tweets:
if with_meta:
yield tweet, meta
Expand Down

0 comments on commit a91c22f

Please sign in to comment.