问题:
我从git拉下来的scrapy项目运行scrapy crapy spidername报错。
Scrapy 2.4.1 - no active project
Unknown command: crawl
Use “scrapy” to see available commands
解决方案:
检查当前项目下是否有scrapy.cfg文件,如果没有则新建一个
内容为
# Automatically created by: scrapy startproject
#
# For more information about the [deploy] section see:
# https://scrapyd.readthedocs.io/en/latest/deploy.html
[settings]
default = 项目名称.settings
[deploy]
#url = http://localhost:6800/
project = 项目名称
最后成功运行