Skip to main content

Scrapy Do

https://api.travis-ci.org/ljanyst/scrapy-do.svg?branch=master https://coveralls.io/repos/github/ljanyst/scrapy-do/badge.svg?branch=master PyPI Version

Scrapy Do is a daemon that provides a convenient way to run Scrapy spiders. It can either do it once - immediately; or it can run them periodically, at specified time intervals. It’s been inspired by scrapyd but written from scratch. It comes with a REST API, a command line client, and an interactive web interface.

Quick Start

  • Install scrapy-do using pip:

    $ pip install scrapy-do
  • Start the daemon in the foreground:

    $ scrapy-do -n scrapy-do
  • Open another terminal window, download the Scrapy’s Quotesbot example, and push the code to the server:

    $ git clone https://github.com/scrapy/quotesbot.git
    $ cd quotesbot
    $ scrapy-do-cl push-project
    +----------------+
    | quotesbot      |
    |----------------|
    | toscrape-css   |
    | toscrape-xpath |
    +----------------+
  • Schedule some jobs:

    $ scrapy-do-cl schedule-job --project quotesbot \
        --spider toscrape-css --when 'every 5 to 15 minutes'
    +--------------------------------------+
    | identifier                           |
    |--------------------------------------|
    | 0a3db618-d8e1-48dc-a557-4e8d705d599c |
    +--------------------------------------+
    
    $ scrapy-do-cl schedule-job --project quotesbot --spider toscrape-css
    +--------------------------------------+
    | identifier                           |
    |--------------------------------------|
    | b3a61347-92ef-4095-bb68-0702270a52b8 |
    +--------------------------------------+
  • See what’s going on:

    Active Jobs

    The web interface is available at http://localhost:7654 by default.

Building from source

Both of the steps below require nodejs to be installed.

  • Check if things work fine:

    $ pip install -rrequirements-dev.txt
    $ tox
  • Build the wheel:

    $ python setup.py bdist_wheel

ChangeLog

Version 0.4.0

  • Migration to the Bootstrap 4 UI

  • Make it possible to add a short description to jobs

  • Make it possible to specify user-defined payload in each job that is passed on as a parameter to the python crawler

  • UI updates to support the above

  • New log viewers in the web UI

Metadata

Release files for scrapy-do-heroku 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scrapy-do-heroku 0.4.1
File Size Uploaded Provenance Actions
scrapy-do-heroku-0.4.1.tar.gz 62.0 kB Without provenance Details for scrapy-do-heroku-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scrapy-do-heroku 0.4.1
File Interpreter ABI Platform Actions
scrapy_do_heroku-0.4.1-py2.py3-none-any.whl Python 2, Python 3 none any Details for scrapy_do_heroku-0.4.1-py2.py3-none-any.whl

Total release size: 2.1 MB

Release files / scrapy-do-heroku-0.4.1.tar.gz

Download URL scrapy-do-heroku-0.4.1.tar.gz
Size 62.0 kB
Tags Source
SHA-256 checksum
How to use checksums
52c121b45c8e3b080d30308e41575efc1c06227a27f992d9d9277d0920fa7a2a
BLAKE2b-256 checksum
How to use checksums
fa6e8e1cd199b457d3eef5f5577bd07ccb8f40167bc664d3a8130fd289b6eddb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

Release files / scrapy_do_heroku-0.4.1-py2.py3-none-any.whl

Download URL scrapy_do_heroku-0.4.1-py2.py3-none-any.whl
Size 2.1 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
56c829eb9d0cfcf580cd4c453e3f8779de136991215ad0debcbd9366cbaaa2ee
BLAKE2b-256 checksum
How to use checksums
ba4a56e782bfa76dacaf906367d1a42744da3c0dba22e17c6c754a14de674a91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

Security for scrapy-do-heroku 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page