scrapy的xpath,scrapy shell

 response.xpath('//*[@class="article-list"]//a/text()').extract()
 
 response.xpath('//*[@class="article-list"]//h4/a/@href').extract()
 
 response.xpath('//*[@class="article-list"]//a/@href').extract()
 
 scrapy shell https://blog.csdn.net/s98

猜你喜欢

转载自blog.csdn.net/s98/article/details/87084626