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
posted @ 2019-05-29 09:25  公众号python学习开发  阅读(160)  评论(0编辑  收藏  举报