Skip to content

Instantly share code, notes, and snippets.

@wyukawa
Created October 16, 2012 05:38
Show Gist options
  • Select an option

  • Save wyukawa/3897379 to your computer and use it in GitHub Desktop.

Select an option

Save wyukawa/3897379 to your computer and use it in GitHub Desktop.
python twitter
#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