X-Git-Url: https://projects.mako.cc/source/twitter-api-cdsw/blobdiff_plain/30dd074a58c070a2ac07650a5eef9c13c3e773a9..c63b39e25aac93634380365407e6b909d19dcd4f:/twitter3.py diff --git a/twitter3.py b/twitter3.py index 897b7b3..16329e3 100644 --- a/twitter3.py +++ b/twitter3.py @@ -1,3 +1,4 @@ +import encoding_fix import tweepy from twitter_authentication import CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET @@ -9,4 +10,4 @@ api = tweepy.API(auth) public_tweets = api.search("data science", count=20) for tweet in public_tweets: - print tweet.user.screen_name + "\t" + str(tweet.created_at) + "\t" + tweet.text + print(tweet.user.screen_name + "\t" + str(tweet.created_at) + "\t" + tweet.text)