第一步:安装scrapy模块
pip install scrapy
第二步:在需要创建的文件夹内打开cmd窗口输入
scrapy startproject myfirstscrapy
会看到下面的命令:
You can start your first spider with:
cd myfirstscrapy
scrapy genspider example example.com
第三步:根据命令提示输入创建爬虫项目即可
cd myfirstscrapy
scrapy genspider example(项目名) example.com(网站地址)
标签:框架,genspider,com,cd,scrapy,myfirstscrapy,安装,example
From: https://www.cnblogs.com/wellplayed/p/18027486