Scrapyd 404以获得“ curl http:// localhost:6800 / listjobs.json?project = myproject”:无此类资源

时间:2019-07-15 05:21:14

标签: python-3.x scrapyd

listjobs.json?project = myproject是404

但是其他人可以获得,例如:listspiders.json?project = myproject ...

curl http://localhost:6800/listjobs.json?project=myproject

1 个答案:

答案 0 :(得分:0)

我忘了写配置文件:

[services]
schedule.json     = scrapyd.webservice.Schedule
cancel.json       = scrapyd.webservice.Cancel
addversion.json   = scrapyd.webservice.AddVersion
listprojects.json = scrapyd.webservice.ListProjects
listversions.json = scrapyd.webservice.ListVersions
listspiders.json  = scrapyd.webservice.ListSpiders
delproject.json   = scrapyd.webservice.DeleteProject
delversion.json   = scrapyd.webservice.DeleteVersion
listjobs.json     = scrapyd.webservice.ListJobs
daemonstatus.json = scrapyd.webservice.DaemonStatus