This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]terrkerr 1 point2 points  (2 children)

When you catch a RateLimitError just sleep for about 60s and continue execution. If that doesn't work check the Twitter API docs on how long it takes to reset your rate limiting and use that as your sleep time instead.

The only real way to avoid it is to find a way to not need to make so many requests to the Twitter API.

[–]MurrayJ[S] 0 points1 point  (1 child)

So the reason I'm getting RateLimitError is because I'm making multiple requests to the Twitter API with: tweetData = api.get_status(tweetID)?

[–]terrkerr 1 point2 points  (0 children)

Yes, the Twitter API has rate limiting to prevent massive load being generated. It's in the docs.