Skip to content

Instantly share code, notes, and snippets.

@wozozo
Created December 18, 2011 08:27
Show Gist options
  • Save wozozo/1492725 to your computer and use it in GitHub Desktop.
Save wozozo/1492725 to your computer and use it in GitHub Desktop.
# coding: utf-8
import tweepy
CONSUMER_KEY = ''
CONSUMER_SECRET = ''
ACCESS_TOKEN = ''
ACCESS_TOKEN_SECRET = ''
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
auth.set_access_token(ACCESS_TOKEN, ACCESS_TOKEN_SECRET)
api = tweepy.API(auth)
fetched_list = api.get_list('SCREEN_NAME', 'LIST_NAME')
for tweet in fetched_list.timeline():
d = {'id': tweet.id,
'user': tweet.user.screen_name,
'text': tweet.text,
'created_at': tweet.created_at}
print d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment