Created
October 16, 2012 05:38
-
-
Save wyukawa/3897379 to your computer and use it in GitHub Desktop.
python twitter
This file contains hidden or 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
| #coding: utf-8 | |
| import twitter | |
| twitter_search = twitter.Twitter(domain="search.twitter.com") | |
| search_results = twitter_search.search(q="Hadoop", rpp=10, page=1) | |
| tweets = [r['text'] for r in search_results['results']] | |
| for tweet in tweets: | |
| print tweet.encode("utf-8") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment