我想将多个用户定义的参数传递给我的scrapy spyder,所以我试着关注这篇文章:如何在scrapy spider中传递用户定义的参数
但是,当我按照建议在那里时,我收到一个错误:
root@ scrapy crawl dmoz -a address= 40-18 48th st -a borough=4
Usage
=====
scrapy crawl [options] <spider>
crawl: error: running 'scrapy crawl' with more than one spider is no longer supported
Run Code Online (Sandbox Code Playgroud)
我也试过各种引号的排列:
root@ scrapy crawl dmoz -a address= "40-18 48th st" -a borough="4"
Usage
=====
scrapy crawl [options] <spider>
crawl: error: running 'scrapy crawl' with more than one spider is no longer supported
Run Code Online (Sandbox Code Playgroud)
将参数传递给Scrapy蜘蛛的正确方法是什么?我想传递蜘蛛登录/抓取过程的用户名和密码.谢谢你的任何建议.
Bir*_*rei 12
没scrapy问题,我想.这是你shell解释输入的方式,在空格中分割标记.因此,您不能在密钥及其值之间使用任何密钥.试试:
scrapy crawl dmoz -a address="40-18 48th st" -a borough="4"
Run Code Online (Sandbox Code Playgroud)