python - Custom JSON Response from Scrapy Spider Deployed via Scrapyd -
i need find way make scrapy spider return custom json response. deployed via scrapyd using schedule.json
. schedule.json responds jobid
, status
, i'd add more data response.
if there's way creating separate response , make separate request work well.
much appreciated!
(taken learn read source, luke).
it doable.
implement own resource
based on scrapyd.webservice.wsresource
, write render_post()
method. then, tell scrapyd
use schedule.json
resource implementation:
[services] schedule.json = project.module.myschedule
Comments
Post a Comment