Duha_Sa
#1
How we consider the number of requests?
Are they by each time we run the code
OR each time the loop make the api search, it will consider as request e.g for tweet in tweepy.Cursor(api.search,q=‘to:’+screenName,tweet_mode=“extended”, timeout=999999). items():
Each individual HTTP request counts, so in tweepy, if you’re using a cursor, it’s how many pages the cursor requests - not how many tweepy calls you make.
Here’s an example http://docs.tweepy.org/en/v3.5.0/code_snippet.html#handling-the-rate-limit-using-cursors - you need to wrap the cursor in a rate limit handler to make sure you wait appropriately.
2 Likes
system
closed
#4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.