How to send scrapy command line argument to scrapyd-client

271 views Asked by At

I want to schedule a spider from scrapyd-client by giving the command line arguments as well.

e.g: scrapy crawl spider_name -a person="John" -a location="porto" -o local.csv

Above command works well when running spider directly from scrapy, but it does not work when running it from rest API using scrapyd-client.

Basically the question is how to send scrapy's command line arguments like (-a, -o) in scrapyd-client?

1

There are 1 answers

3
msenior_ On

Use the flag -d instead of the -a flag