fe0791da8d53fb49357707802c0ac486822b9983
[twitter-api-cdsw-solutions] / twitter1.py
1 import tweepy
2 from twitter_authentication import API_KEY, API_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET
3
4 auth = tweepy.OAuthHandler(API_KEY, API_SECRET)
5 auth.set_access_token(ACCESS_TOKEN, ACCESS_TOKEN_SECRET)
6
7 api = tweepy.API(auth)
8
9 public_tweets = api.home_timeline(count=100)
10
11 for tweet in public_tweets:
12     print tweet.text

Benjamin Mako Hill || Want to submit a patch?