]> projects.mako.cc - twitter-api-cdsw-solutions/blob - twitter1.py
26b6337cf3247f8d9f14d6f8930e60f97c24a8e9
[twitter-api-cdsw-solutions] / twitter1.py
1 import encoding_fix
2 import tweepy
3 from twitter_authentication import CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET
4
5 auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
6 auth.set_access_token(ACCESS_TOKEN, ACCESS_TOKEN_SECRET)
7
8 api = tweepy.API(auth)
9
10 public_tweets = api.home_timeline(count=100)
11
12 for tweet in public_tweets:
13     print(tweet.text)

Benjamin Mako Hill || Want to submit a patch?