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!

enter image description here

(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

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -