Avoid Twitter API limitation with Tweepy

前端 未结 5 1425
时光说笑
时光说笑 2020-11-30 21:18

I saw in some question on Stack Exchange that the limitation can be a function of the number of requests per 15 minutes and depends also on the complexity of the algorithm,

5条回答
  •  Happy的楠姐
    2020-11-30 22:19

    Just replace

    api = tweepy.API(auth)
    

    with

    api = tweepy.API(auth, wait_on_rate_limit=True)
    

提交回复
热议问题