scrapy shell的使用

这里以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