0
我正在写一个简单的Tweepy应用程序的乐趣,但我真的只限于我有多少API调用(150至350之间的任何地方)。所以为了解释这一点,我正在寻找切断通话的方法。 Tweepy内置了光标系统。例如:Tweepy光标与低API调用迭代
# Iterate through all of the authenticated user's friends
for follower in tweepy.Cursor(api.followers).items():
follower.follow()
对于那些熟悉此库的人员。将上面的例子是比简单地或多或少有效...
for follower in api.followers_ids():
api.follow(follower)
是否有任何其他的优点除了简单以上的迭代方法来使用光标方法?
在此先感谢。
api.followers_ids()将仅返回前5000个用户,因此可以安全地认为它不是一个因素。在那种情况下哪个最好? –