Skip to content

Instantly share code, notes, and snippets.

@b4dtR1p
Created July 30, 2015 19:01
Show Gist options
  • Save b4dtR1p/2cff57043e1c8f46e795 to your computer and use it in GitHub Desktop.
Save b4dtR1p/2cff57043e1c8f46e795 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import tweepy
CONSUMER_KEY = ''
CONSUMER_SECRET = ''
ACCESS_KEY = ''
ACCESS_SECRET = ''
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
auth.set_access_token(ACCESS_KEY, ACCESS_SECRET)
api = tweepy.API(auth)
data = api.rate_limit_status()
print (data['resources']['statuses']['/statuses/home_timeline'])
print (data['resources']['users']['/users/lookup'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment