Skip to content

Instantly share code, notes, and snippets.

@bear
Created October 8, 2012 16:52
Show Gist options
  • Save bear/3853559 to your computer and use it in GitHub Desktop.
Save bear/3853559 to your computer and use it in GitHub Desktop.
Pull all twitter posts for a given timeline
import twitter
api = twitter.Api(consumer_key='consumerKey',
consumer_secret='consumerSecret',
access_token_key='accessKey',
access_token_secret='accessSecret',
debugHTTP=False)
timeline = api.GetFriendsTimeline(since_id=sinceid, retweets=True, include_entities=True)
for status in timeline:
item = status.AsDict()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment