Skip to content

Instantly share code, notes, and snippets.

@mwicat
Created April 14, 2014 18:40
Show Gist options
  • Select an option

  • Save mwicat/10672877 to your computer and use it in GitHub Desktop.

Select an option

Save mwicat/10672877 to your computer and use it in GitHub Desktop.
parse xml example
from lxml import etree
r = etree.parse(open('upload%3fclient=Opera(98)'))
fields = r.xpath('/autofillupload/field')
[field.get('autofilltype') for field in fields]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment