Twitter bid limit exceeded. Clients cannot make more than 350 requests per hour

using Tweepy in my application, I get this exception very often, right after sending no more than 10 tweets and updating the timeline about 20-30 times.

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

To update the timeline, I use the timeline function with a limit of 40 tweets.

So, I do not do what is happening here, maybe there is another API call for twitt or something like that.

Do you have any idea what kind of request consumes more API calls or when more than one is being used?

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

Thanks in advance.

+4
source share
3 answers
 >>> 3600./350 10.285714285714286 

Post only a tweet every 11 seconds.

+4
source

Here is your friend → Twitter api rate-limit

Spend some time reading this document.

Headings

Answers that may help you return speed limit status headers. Consider registering them at the debugging level. If your requests come from different IP addresses, you can see that the quota / usage is being reported from the response to the response.

Whitelisting

Obtaining the IP addresses of your servers can be a solution if you have many users.
Some hosting providers are already configured, for example, Google App Engine.

+4
source

Just a hunch, but just because the limit is expressed in reqs / hr does not mean that it is measured or applied hourly.

+1
source

All Articles