Skip to content

Instantly share code, notes, and snippets.

Created October 3, 2008 03:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/14494 to your computer and use it in GitHub Desktop.
Save anonymous/14494 to your computer and use it in GitHub Desktop.
import feedparser
def get_tweets(query, page):
feeds = feedparser.parse("http://search.twitter.com/search.atom?q=" + str(query) + "&rpp&page=" + str(page) + "&show_user=true")
return feeds.entries
entradas = get_tweets("fitoria", 1)
print "un tweet"
print "autor: " + entradas[1].author_detail.name
print "link del maje:" + entradas[1].author_detail.href
print "tweet:" + entradas[1].subtitle
print "link a la imagen: " + entradas[1].links[1].href
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment