Asad Mehmood
Asad Mehmood

Reputation: 342

scrapyd-deploy not deploying project? Python Scrapy

I have setup a scrapyd Server. When I run the command scrapyd-deploy, it shows me the following message.

enter image description here

but when I navigate to http://10.2.1.54:6800/jobs it shows nothing.

enter image description here

Am I Missing something?

Upvotes: 0

Views: 310

Answers (1)

msenior_
msenior_

Reputation: 2110

The scrapyd-deploy function only sets up the server to accept crawl jobs. You have to schedule spider runs using the json api. The screenshot you have shared is the default jobs page once the scrapyd server has been successfully set up.

An example taken from the docs shows how to schedule a job as below.

$ curl http://localhost:6800/schedule.json -d project=myproject -d spider=spider2

which returns {"status": "ok", "jobid": "26d1b1a6d6f111e0be5c001e648c57f8"}

Upvotes: 2

Related Questions