X-Git-Url: https://projects.mako.cc/source/twitter-api-cdsw/blobdiff_plain/30dd074a58c070a2ac07650a5eef9c13c3e773a9..b5d973d7a0a14eca21b2981ffacf4fb9ea77ba41:/twitter3.py diff --git a/twitter3.py b/twitter3.py index 897b7b3..d9b7ab7 100644 --- a/twitter3.py +++ b/twitter3.py @@ -9,4 +9,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)