Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
tips:xpath [2015/09/24 09:46] – scipio | tips:xpath [2015/09/24 11:12] (current) – scipio | ||
---|---|---|---|
Line 18: | Line 18: | ||
doc=html.fromstring(htmltext) | doc=html.fromstring(htmltext) | ||
- | #find_text = doc.xpath("// | ||
tree=etree.ElementTree(doc) | tree=etree.ElementTree(doc) | ||
for e in tree.iter(): | for e in tree.iter(): |