python-scrapyd-api
A Python wrapper for Scrapyd's API
View on GitHubpypi
A Python wrapper for the API of Scrapyd, the daemon that deploys and runs Scrapy spiders. It lets a Python application control Scrapyd: add project versions, schedule and cancel jobs, check on them, and list or delete projects, spiders and versions.
>>> from scrapyd_api import ScrapydAPI
>>> scrapyd = ScrapydAPI('http://localhost:6800')
>>> scrapyd.schedule('project_name', 'spider_name')
u'14a6599ef67111e38a0e080027880ca6'
>>> scrapyd.job_status('project_name', '14a6599ef67111e38a0e080027880ca6')
'running'
It's on PyPI, with full documentation on Read the Docs.