tweepy (python): rate limit exceeded code 88

前端 未结 2 2023
死守一世寂寞
死守一世寂寞 2021-01-06 02:51

I\'m writing a Twitter application with tweepy that crawls up the tweets by looking at in_reply_to_status_ID. Everything works fine up to the rate limit, after a few minute

相关标签:
2条回答
  • 2021-01-06 03:03

    I put a limit and worked:

    def index(request):
        statuses = tweepy.Cursor(api.user_timeline).items(10)
        return TemplateResponse(request, 'index.html', {'statuses': statuses})
    
    0 讨论(0)
  • 2021-01-06 03:08

    This is due to you reached max limit. Just disconnect your internet connection and reconnect again, no need to wait. Use cursor:

    statuses = tweepy.Cursor(api.user_timeline).items(2)

    If you get the error again, just reduce items.

    0 讨论(0)
提交回复
热议问题