Created
December 18, 2011 08:27
-
-
Save wozozo/1492725 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# 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