Skip to content

Instantly share code, notes, and snippets.

@erinxocon
Created August 30, 2010 09:04
Show Gist options
  • Save erinxocon/557199 to your computer and use it in GitHub Desktop.
Save erinxocon/557199 to your computer and use it in GitHub Desktop.
from lxml import etree
def main():
some_file = "http://gist.github.com/api/v1/xml/gists/kennethreitz"
tree = etree.parse(some_file)
root = tree.getroot()
for element in root.iter("description"):
print("%s" % (element.text))
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment