unknown command: crawl error

旧城冷巷雨未停 提交于 2019-12-02 19:03:44

You should run scrapy crawl spider_name command being in a scrapy project folder, where scrapy.cfg file resides.

From the docs:

Crawling

To put our spider to work, go to the project’s top level directory and run:

scrapy crawl dmoz

You can run scrapy crawl demoz code from your scrapy project folder which you have created using following command

scrapy startproject tutorials

For example, if you have started scrapy project of name tutorials, then go to tutorials folder first and run crawl command from there

scrapy crawl demoz
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!