![](/img/trans.png)
[英]Scrapy tutorial error: “Running 'Scrapy Crawl' with more than one spider is no longer supported”
[英]How to pass multiple arguments to Scrapy spider (getting error running 'scrapy crawl' with more than one spider is no longer supported)?
我想將多個用戶定義的參數傳遞給我的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
我也試過各種引號的排列:
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蜘蛛的正確方法是什么? 我想傳遞蜘蛛登錄/抓取過程的用戶名和密碼。 謝謝你的任何建議。
我想沒有scrapy
問題。 這是你的shell
如何解釋輸入,在空格中分割標記。 因此,您不能在密鑰及其值之間使用任何密鑰。 試試:
scrapy crawl dmoz -a address="40-18 48th st" -a borough="4"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.