Reputation: 423
I have the following html code:
<h1>
<a href="https://www.google.com">
<span>448587: </span>Brian McMills
</a>
</h1>
I'm only interested in Brian McMills
. I would like to use scrapy css selector
function to select the text.
When I use h1 a ::text
, it selects only the 448587:
portion, I tried some combinations of :not(span)
but it doesn't work.
Note: I'm not interested in Xpath
or scripting
solutions, only css
.
Upvotes: 1
Views: 1980