今天从网下下载了一个scrapy_redis的例子,导入运行报错:
Scrapy 1.5.0 - 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 = example.settings
[deploy]
#url = http://localhost:6800/
project = example
然后在运行就OK 了