How to add a new service to scrapyd from current project

邮差的信 提交于 2020-01-23 03:03:32

问题


I am trying to run multiple spiders at once and I made my own custom command in scrapy. Now I am trying to run that command through srapyd. I tried to add it as a new service to my scrapd.conf but it throws an error saying there is no such module.

Failed to load application: No module named XXXX

Also, I cannot set a relative path. My question is how can I add my custom command as a service or fire it through scrapyd. I have something like this in my scrapyd.conf:

updateoutdated.json = currentdirectory.myproject.commands

来源:https://stackoverflow.com/questions/53369470/how-to-add-a-new-service-to-scrapyd-from-current-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!