HubplodeHop
New Member
\[code\]<div class="one"> <a class="two" href="http://stackoverflow.com/questions/12810355/Something..."><img src="http://..."/></a> <p> stuff.... </p> <p><img src="http://....." /></p></div>\[/code\]I have this silly HTML which I am parsing, as you can see there is one main class called one and another one nested called two.I am trying to parse all the images in class one, but apparently the XPath I have is only catching one image, which is the image from class oneI tried this:\[code\]//div[@class="one"]/img | //a[@class="two"]/img\[/code\]But apparently I am not catching from class two, but only from class one is there anyway to do this?I am using lxml.html's xpath feature.