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.

Revisions

  1. nomeyer created this gist Apr 4, 2016.
    4 changes: 4 additions & 0 deletions fetch_parse_xml.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    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")