Can I pass more than one setting to `schedule.json` ?
See original GitHub issueHello! Thanks for seeing this issue.
The doc of schedule.json
says:
setting (string, optional) - a Scrapy setting to use when running the spider
So can I pass two or more Scrapy settings to the spider?
For example, I can run the following command in command line:
scrapy crawl somespider -s JOBDIR='./jobs' -s CLOSESPIDER_TIMEOUT=100
Then it can pass both two settings to the job.
What should I do if I want to pass those two settings via API schedule.json
?
Thank you!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:6
Top Results From Across the Web
Pass multiple parameters to rest API - Spring - Stack Overflow
Yes. I'd suggest you do a web search. I'd also suggest using a library, such as jQuery , to make it easier.
Read more >Combine multiple requests in one HTTP call using JSON ...
Use JSON batching to optimize your application by combining multiple requests into a single JSON object, saving the application significant network latency.
Read more >Scheduling queries | BigQuery - Google Cloud
Shows how to set up, update, and delete scheduled queries in BigQuery, and describes configuration options, quotas, pricing, and supported regions for ...
Read more >JSON Event - Qualtrics
The JSON Event can be used to integrate with Zendesk as an HTTP target in a trigger. That means events in Zendesk can...
Read more >Schedules - Zendesk Developer Docs
You can use this API to create multiple schedules with different business hours and holidays. To learn more about schedules, see Setting your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@nadzimo Hi! You can pass settings with any HTTP client like
requests
orurllib
. I userequests
in my project. The following code is for your reference.In the above code, I pass a list of tuples as POST data instead of dict to pass more than one setting to scrapyd API, or values with same key will be overridden.
you can
by soure code add print ,this is able