Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 10th, 2012  |  syntax: None  |  size: 0.26 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Fetching tweets using python-twitter API
  2. twitter_api = twitter.Twitter(domain="api.twitter.com", api_version='1')
  3. WORLD_WOE_ID = 1
  4. world_trends = twitter_api.trends._(WORLD_WOE_ID)
  5. trends = world_trends()
  6. print [trend['name'] for trend in trends[0]['trends']]