How can I use Scrapy to select the text of an element with a specific attribute name and value?
For instance,
<span property="city">Montreal</span>
I tried the following but got None
response.css('.span[property="city"]::text').extract_first()
source
share