在正式编写爬虫案例前,先对 scrapy
进行一下系统的学习。
scrapy 安装与简单运行
使用命令 pip install scrapy
进行安装,成功之后,还需要随手收藏几个网址,以便于后续学习使用。
- scrapy 官网:https://scrapy.org;
- scrapy 文档:https://doc.scrapy.org/en/latest/intro/tutorial.html;
- scrapy 更新日志:https://docs.scrapy.org/en/latest/news.html。
安装完毕之后,在控制台直接输入 scrapy
,出现如下命令表示安装成功。
> scrapy
Scrapy