Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from lxml import etree
- a = etree.parse(file)
- root = a.getroot()
- [i.get('href') 'for i in root.xpath('//item[@media-type="application/xhtml+xml"]')]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement