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

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -