【发布时间】:2015-09-08 21:53:50
【问题描述】:
我想将多个用户定义的参数传递给我的scrapy spyder,所以我尝试关注这个帖子:How to pass a user defined argument in 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
我还尝试了各种引号排列:
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
将参数传递给 Scrapy 蜘蛛的正确方法是什么?我想为蜘蛛的登录/抓取过程传递用户名和密码。感谢您的任何建议。
【问题讨论】: