Created
November 6, 2012 20:41
-
-
Save samuelcouch/4027378 to your computer and use it in GitHub Desktop.
Twitter Search and Display
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from twython import Twython | |
search_list = ['OMGrobots', 'FRC', 'FIRST Robotics', 'Dean Kamen'] | |
# For the sake of testing, added more search terms | |
for tweet_keyword in search_list: | |
twitter = Twython() | |
search_results = twitter.search(q=tweet_keyword, rpp="100") | |
for tweet in search_results["results"]: | |
print "Tweet from @%s Date: %s" % (tweet['from_user'].encode('utf-8'),tweet['created_at']) | |
print tweet['text'].encode('utf-8'),"\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment