scrapy get tag attribute value code example
Example 1: get href scrapy xpath
# with xpath
//div[@class='image']/a[1]/@href
# using css
Link = response.css('span.title a::attr(href)').getall()
Example 2: scrapy xpath contains class
//div[contains(concat(' ',normalize-space(@class),' '),' foobar ')]