]> projects.mako.cc - twitter-api-cdsw-solutions/blobdiff - twitter1.py
Merge pull request #3 from guyrt/master
[twitter-api-cdsw-solutions] / twitter1.py
index fe0791da8d53fb49357707802c0ac486822b9983..c1ec98fc81dacd04942db5ae7dc88e5fcd660965 100644 (file)
@@ -1,7 +1,7 @@
 import tweepy
-from twitter_authentication import API_KEY, API_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET
+from twitter_authentication import CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET
 
-auth = tweepy.OAuthHandler(API_KEY, API_SECRET)
+auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
 auth.set_access_token(ACCESS_TOKEN, ACCESS_TOKEN_SECRET)
 
 api = tweepy.API(auth)
@@ -9,4 +9,4 @@ api = tweepy.API(auth)
 public_tweets = api.home_timeline(count=100)
 
 for tweet in public_tweets:
-    print tweet.text
+    print(tweet.text)

Benjamin Mako Hill || Want to submit a patch?