Tweepy Cursor Vs Iterative For Low Api Calls
I am writing a simple Tweepy application for fun, but am really limited to how many API calls I have (anywhere between 150 and 350). So to account for this I am looking for ways to
Solution 1:
If I remember correctly from my use of tweepy
, a Cursor
object automatically paginates over n
many elements... For instance, if there are 10,000 results, and Twitter returns (say) 200 at a time, then using the Cursor
will return all 10,000 but will have to make a call to keep retrieving the next ones.
OTOH, api.followers_ids()
only returns the first "page" of results, so maybe the first 100 or whatever.
Post a Comment for "Tweepy Cursor Vs Iterative For Low Api Calls"