tips:xpath

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tips:xpath [2015/09/24 09:46] scipiotips:xpath [2015/09/24 11:12] (current) scipio
Line 18: Line 18:
  
 doc=html.fromstring(htmltext) doc=html.fromstring(htmltext)
-#find_text = doc.xpath("//text()") 
 tree=etree.ElementTree(doc) tree=etree.ElementTree(doc)
 for e in tree.iter(): for e in tree.iter():
  • tips/xpath.1443080784.txt.gz
  • Last modified: 2015/09/24 09:46
  • by scipio