我想将多个用户定义的参数传递给我的 scrapy spider,所以我尝试遵循这篇文章:如何在 scrapy 蜘蛛中传递用户定义的参数 https://stackoverflow.com/questions/15611605/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蜘蛛传递参数的正确方法是什么?我想为蜘蛛的登录/抓取过程传递用户名和密码。感谢您的任何建议。
No scrapy
问题,我猜。这就是你的shell
解释输入,在空格中分割标记。因此,键和值之间不能有任何一个。尝试使用:
scrapy crawl dmoz -a address="40-18 48th st" -a borough="4"
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)