Skip to content

Instantly share code, notes, and snippets.

@waynemoore
Created October 27, 2010 17:17
Show Gist options
  • Save waynemoore/649502 to your computer and use it in GitHub Desktop.
Save waynemoore/649502 to your computer and use it in GitHub Desktop.
How to query a user's status using tweepy.
import tweepy
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token_key, access_token_secret)
api = tweepy.API(auth)
user = api.get_user('twitter')
print user.status.text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment