I think I am using Scrapy wrong, but I am trying to use xpath to select only the text from the H2's on a page and strip out the inner tags.
eg.
<h2>Welcome to my <a href="#">page</a></h2>
<h2>Welcome to my Page</h2>
I have tried using //h2//text(), but it produces an array like this
item["h2s"] = response.xpath('//h2//text()').extract()
['Welcome to my',
'page',
'Welcome to my Page']
I have tried number of combinations and just can't seem to get an array like I want below
['Welcome to my page',
'Welcome to my Page']