Created
July 30, 2015 19:01
-
-
Save b4dtR1p/2cff57043e1c8f46e795 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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