Skip to main content

distributed scrapy spider scheduling system

Project description

PyPI Version Build Status Coverage report

Scrapydd is a system for scrapy spiders distributed running and scheduleing system, including server and client agent.

Advantages:

  • Distributed, easily add runner(agent) to scale out.

  • Project requirements auto install on demand.

  • Cron expression time driven trigger, run your spider on time.

  • Webhook loosely couple the data crawling and data processing.

  • Spider status insight, system will look into the log to clarify spider run status.

Installing Scrapydd

By pip:

pip install scrapydd

You can also install scrapydd manually:

  1. Download compressed package from github releases.

  2. Decompress the package

  3. Run python setup.py install

Run Scrapydd Server

scrapydd server

The server default serve on 0.0.0.0:6800, with both api and web ui. Add –daemon parameter in commmand line to run in background.

Run Scrapydd Agent

scrapydd agent

Add –daemon parameter in commmand line to run in background.

Docs

The docs is hosted here

Docker-Compose

version: '3'
services:
  db:
    image: mysql
    command: --default-authentication-plugin=mysql_native_password
    restart: always
    ports:
      - "3306:3306"
    volumes:
      - "datadb:/var/lib/mysql"
    environment:
      MYSQL_ROOT_PASSWORD: mysqlPassword
      MYSQL_DATABASE: scrapydd
      MYSQL_USER: scrapydd
      MYSQL_PASSWORD: scrapyddPwd

  server:
    image: "kevenli/scrapydd"
    ports:
      - "6800:6800"
    volumes:
      - "./server:/scrapydd"
      - "/var/run/docker.sock:/var/run/docker.sock"
    command: scrapydd server

  agent:
    image: "kevenli/scrapydd"
    volumes:
      - "./agent:/scrapydd"
      - "/var/run/docker.sock:/var/run/docker.sock"
    links:
      - server
    environment:
      - SCRAPYDD_SERVER=server
    command: scrapydd agent

volumes:
  datadb:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

scrapydd-0.7.5-py3-none-any.whl (954.1 kB view details)

Uploaded Python 3

File details

Details for the file scrapydd-0.7.5-py3-none-any.whl.

File metadata

  • Download URL: scrapydd-0.7.5-py3-none-any.whl
  • Upload date:
  • Size: 954.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for scrapydd-0.7.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6d862f88c6e37e292680cfe2e5dae336930ed79c6782cbd40839dd86156aa0c5
MD5 9af64561ddb4a711e62c4ba110c98c9a
BLAKE2b-256 6a10f8eeb334f1b91ed07f25277f2918813759cf0223c2f6c0f598a35fc4664a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page