Created
April 14, 2014 18:40
-
-
Save mwicat/10672877 to your computer and use it in GitHub Desktop.
parse xml example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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