I have a series of <p> elements inside a document that I am scraping with scrapy.
some of them: <p><span>bla bla bla</span></p> or <p><span><span>bla bla bla</span><span>second bla bla</span></span></p>
I want to extract all the text with children (suppose I already have a <p selector)
(second example: have the string bla bla bla second bla bla )
source share