Twitter only returns 100 tweets per “page” when returning search results to the API. They provide max_idand since_idin the return search_metadata, which can be used as parameters for receiving early / late tweets.
The Twython 3.1.2 documentation suggests that this template is the “old way” to search:
results = twitter.search(q="xbox",count=423,max_id=421482533256044543)
for tweet in results['statuses']:
... do something
and that is a new way :
results = twitter.cursor(t.search,q='xbox',count=375)
for tweet in results:
... do something
When I do the latter, it seems to endlessly iterate over the same search results. I try to push them to a CSV file, but it pushes a ton of duplicates.
What is the right way to search for a large number of tweets using Twython and repeat many unique results?
: , (for tweet in results:), , . - ... https://github.com/ryanmcgrath/twython/issues/300