Sign inSign up

zwilson/scrapyd

By zwilson

•Updated about 6 years ago

Image
0

1.2K

zwilson/scrapyd repository overview

⁠docker-scrapyd

Dockerized Scrapyd server.

⁠Prerequisites

  1. docker-machine⁠
  2. scrapyd-client⁠

⁠Installation

From a bash terminal, pull the Docker image zwilson/scrapyd⁠

docker pull zwilson/scrapyd

see Contribute⁠ for installalling in a development environment.

⁠Usage

Start the docker container

docker run --rm -d \
-v $PWD/data:/home/scrapyd/data \
-p 6800:6800 \
zwilson/scrapyd

Then, from the root of a Scrapy project

scrapyd-deploy && \
curl -d project=$PROJECT_NAME -d spider=$SPIDER_NAME \
http://localhost:6800/schedule.json

To use python dependencies not included with the scrapyd distribution, such as Scrapy extensions⁠ add this repository as a submodule to a scrapyd project, update ./docker-scrapyd/requirements.txt followed by, e.g.:

docker build -t scrapyd:latest ./docker-scrapyd/.

⁠Contribute

git clone https://github.com/zazazack/docker-scrapyd.git
cd docker-scrapyd
docker-compose up -d

alternatively,

docker stack up -c ./docker-stack.yml up scrapyd

⁠References

Tag summary

Content type

Image

Digest

Size

82.7 MB

Last updated

about 6 years ago

docker pull zwilson/scrapyd