4.6xpath基础语法
如何在scrapy中使用xpath?
scrapy shell http://blog.jobbole.com
response.xpath(".entry-header h1")
response.xpath(".entry-header h1::text").extract()
response.xpath(".entry-header h1::text").extract()[0]Last updated
scrapy shell http://blog.jobbole.com
response.xpath(".entry-header h1")
response.xpath(".entry-header h1::text").extract()
response.xpath(".entry-header h1::text").extract()[0]Last updated