Skip to content

Instantly share code, notes, and snippets.

@nomeyer
Created April 4, 2016 13:12
Show Gist options
  • Save nomeyer/b1b9bcf232fb8d5600828d1183e45e56 to your computer and use it in GitHub Desktop.
Save nomeyer/b1b9bcf232fb8d5600828d1183e45e56 to your computer and use it in GitHub Desktop.
from xml.dom.minidom import parse, parseString
import urllib2
# note - i convert it back into xml to pretty print it
print parse(urllib2.urlopen("http://search.twitter.com/search.atom?&q=python")).toprettyxml(encoding="utf-8")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment