Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get href scrapy xpath

# with xpath
//div[@class='image']/a[1]/@href

# using css
Link = response.css('span.title a::attr(href)').getall()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #href #scrapy #xpath
ADD COMMENT
Topic
Name
3+3 =