scrapy shell的使用

mac2022-06-30  20

这里以http://bj.maitian.cn/esfall/PG1为例子,然后获取标题。

scrapy shell "http://bj.maitian.cn/esfall/PG1" title =response.xpath('//div[@class="list_title"]/h1/a/text()').extract() title

转载于:https://www.cnblogs.com/c-x-a/p/10941814.html

最新回复(0)