Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twitter Rate limit exceeded. Clients may not make more than 350 requests per hour

using Tweepy in my app, I get this Exception very often, just after sending no more than 10 twetts and updating the timeline around 20~30 times.

Rate limit exceeded. Clients may not make more than 350 requests per hour.

To update the timeline I'm using the timeline function with a limit of 40 tweets.

So I don't what is happening here, maybe there is a different API call per twitt or something like that.

Do you have any idea of wich kind of request consume more API calls, or when is using more than one?

Any suggestion about the best way to use API calls to Twitter?

Thanks in advance.

like image 925
Karma police Avatar asked Jan 20 '23 22:01

Karma police


1 Answers

>>> 3600./350
10.285714285714286

Only send a tweet every 11 seconds.

like image 146
Ignacio Vazquez-Abrams Avatar answered Jan 30 '23 21:01

Ignacio Vazquez-Abrams