当我运行scrapy crawl openings -o items.json -t json教程中提到的命令时,我得到:
Usage
=====
scrapy crawl [options] <spider|url> ...
crawl: error: no such option: -o
Run Code Online (Sandbox Code Playgroud)
我只是按照scrapy教程,当我运行没有输出选项的命令时它工作正常.
scrapy crawl openings
Run Code Online (Sandbox Code Playgroud)
工作正常,我看到了爬网输出,但是如果我想将爬网导出为JSON,它就不起作用.
广泛搜索网络没有帮助或提及此问题.