18.scrapy中selector的用法

Selector是一个独立的模块。

Selector主要是与scrapy结合使用的。

开启Scrapy shell:

1.打开命令行cmd

2.scrapy shell http://doc.scrapy.org/en/latest/_static/selectors-sample1.html

 进入Scrapy shell 模式

 

原文地址:https://www.cnblogs.com/lvjing/p/9542136.html