I am writing a simple Tweepy application for fun, but it is really limited by the number of API calls I have (somewhere between 150 and 350). Therefore, to take this into account, I am looking for ways to reduce calls. Tweepy has a built-in cursor system. For instance:
# Iterate through all of the authenticated user friends for follower in tweepy.Cursor(api.followers).items(): follower.follow()
For those who are familiar with this library. Would the above example be more or less effective than just ...
for follower in api.followers_ids(): api.follow(follower)
Are there other advantages besides simplicity, using the cursor method over the iterative method?
Thanks in advance.
source share