projects
/
twitter-api-cdsw
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reverted the encoding fix that tommy made in lieu of a different crazy hack
[twitter-api-cdsw]
/
twitter1.py
diff --git
a/twitter1.py
b/twitter1.py
index fe0791da8d53fb49357707802c0ac486822b9983..26b6337cf3247f8d9f14d6f8930e60f97c24a8e9 100644
(file)
--- a/
twitter1.py
+++ b/
twitter1.py
@@
-1,7
+1,8
@@
+import encoding_fix
import tweepy
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)
auth.set_access_token(ACCESS_TOKEN, ACCESS_TOKEN_SECRET)
api = tweepy.API(auth)
@@
-9,4
+10,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?