Hi all I would like to extract all the text from an html block using xpath in scrapy
Let's say we have a block like this:
<div>
<p>Blahblah</p>
<p><a>Bluhbluh</a></p>
<p><a><span>Bliblih</span></a></p>
</div>
I want to extract the text as ["Blahblah","Bluhbluh","Blihblih"]. I want xpath to recursively look for text in the div node.
I have heard tried: //div/p[descendant-or-self::*]/text() but it does not extract nested elements.
Cheers! Seb