Oct-26-2018, 12:49 PM
(This post was last modified: Oct-26-2018, 12:51 PM by Baggelhsk95.)
Lets say we have this html, and we wanted to say if the tr in td contains EAN:, Print me the 2nd td in the same element
response.xpath('//strong[contains( text(), "EAN:")]/text()').extract()
<tr class="product-model"> <td><strong>EAN:</strong></td> <td> 4048961089302</td> </tr> <tr class="product-model"> <td><strong>Product.Nr.:</strong></td> <td> 83003</td> </tr>thank you :D