I would like to access a scrapyd instance from within python code directly.
I would propose something like below:
from scrapyd_client import ScrapydClient
client = ScrapydClient(url='http://localhost:6800')
client.projects()
The API would expose the commands already implemented within scrapyd-client. scrapyd-client already has most of the code necessary to accomplish this with little effort. most of it would be wrapper around lib.
Does it make sense? If so, happy to contribute a PR.
I would like to access a
scrapyd
instance from within python code directly.I would propose something like below:
The API would expose the commands already implemented within
scrapyd-client
.scrapyd-client
already has most of the code necessary to accomplish this with little effort. most of it would be wrapper around lib.Does it make sense? If so, happy to contribute a PR.