Skip to content

Instantly share code, notes, and snippets.

@tzermias
Created January 14, 2014 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tzermias/8417962 to your computer and use it in GitHub Desktop.
Save tzermias/8417962 to your computer and use it in GitHub Desktop.
Find which method of the Twitter API (via tweepy) doesn't have any available requests.
rate_limit = api.rate_limit_status()
[key2 for key in rate_limit['resources'] for key2 in rate_limit['resources'][key].keys() if rate_limit['resources'][key][key2]['remaining']==0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment