100 Scripts in 30 Days challenge: Script 15— Finding Rate limit details for Twitter API
There is a fixed rate limit for using Twitter and from time to time we should know it so that we do not go beyond that limit, here I am showing how we can do it using Python.
conf_sample.toml gives what values you need to access Twitter for that please access the below link:
code_twitter_ratelimit.py is the main code which uses tweepy to access the Rate limit api of Twitter and provides the details for our Consumer Key.
ratelimit.json is the output of the program that we run and gives the output of for which API how much is the limit and how much of the quota we can consumed.
You can contact me via twitter for any more clarifications on the code:
https://twitter.com/twitmyreview
Code Details Given Below: