scrapyc

Simple client to scrapyd. Done right.


Keywords
cli, python, scraping, scrapy, scrapyd, scrapyd-ui
License
MIT
Install
pip install scrapyc==0.0.4

Documentation

scrapyc

Build Status codecov PyPI version

Scrapyc is a command line interface and client library for a scrapyd. Despite already existing scrapyd-client this client just works and has been well-tested.

Currently scrapyc is focused only on working with already deployed spiders. For deploying new spiders, please use the official option.

Installation

pip install scrapyc

Both python 2 and python 3 supported.

Usage (Cli)

scrapyc --url=http://scraper1.your.host:6800 --username=r00t --password=pass status

Or you can use environemnt varialbes

export SCRAPYC_URL=http://scraper1.your.host:6800
export SCARPYC_USERNAME=r00t
export SCARPYC_PASSWORD=pass

scrapyc status

Usage (Lib)

from scrapyc import ScrapydClient

c = ScrapydClient(url, username, password)

c.get_status()
c.schedule(project='yandex', spider='spider')