1、在cmd中输入scrapy crawl mySpider 提示如下
D:\python_crawl\crawl_software>scrapy crawl mySpider
Scrapy 1.3.0 - no active project
Unknown command: crawl
Use “scrapy” to see available commands
原因:
没有cd到项目根目录,因为crawl会去搜搜cmd目录下的scrapy.cfg
而且在官方文档中也说明了:http://scrapy-chs.readthedocs.io/zh_CN/0.24/topics/commands.html
参考:
http://blog.csdn.net/u012490863/article/details/54743479