]> projects.mako.cc - twitter-api-cdsw/blobdiff - twitter1.py
Updated packages and code to python3. Won't work with python 2
[twitter-api-cdsw] / twitter1.py
index cee5967f12fc26fb1b4bb479017188258ed5b29c..c1ec98fc81dacd04942db5ae7dc88e5fcd660965 100644 (file)
@@ -9,4 +9,4 @@ api = tweepy.API(auth)
 public_tweets = api.home_timeline(count=100)
 
 for tweet in public_tweets:
 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?