projects
/
twitter-api-cdsw
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #3 from guyrt/master
[twitter-api-cdsw]
/
twitter1.py
diff --git
a/twitter1.py
b/twitter1.py
index fe0791da8d53fb49357707802c0ac486822b9983..c1ec98fc81dacd04942db5ae7dc88e5fcd660965 100644
(file)
--- a/
twitter1.py
+++ b/
twitter1.py
@@
-1,7
+1,7
@@
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
+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?