Skip to main content

Scrapy state between job runs

Project description

scrapy-state

Scrapy state between job runs. Recreating spider's state from settings See https://medium.com/@alex_ber/scrapy-state-between-job-runs-b880c7b34a9d

See CHANGELOG.md for detail description.

Getting Help

QuickStart

python3 -m pip install -U scrapy-state

Installing from Github

python3 -m pip install -U https://github.com/alex-ber/scrapy-state/archive/master.zip

Optionally installing tests requirements.

python3 -m pip install -U https://github.com/alex-ber/scrapy-state/archive/master.zip#egg=alex-ber-utils[tests]

Or explicitly:

wget https://github.com/alex-ber/scrapy-state/archive/master.zip -O master.zip; unzip master.zip; rm master.zip

And then installing from source (see below).

Installing from source

python3 -m pip install . # only installs "required"
python3 -m pip install .[tests] # installs dependencies for tests

Alternatively you install install from requirements file:

python3 -m pip install -r req.txt # only installs "required" (relaxed)
python3 -m pip install -r requirements.txt # only installs "required"
python3 -m pip install -r requirements-tests.txt # installs dependencies for tests

From the directory with setup.py

python3 setup.py test #run all tests

or

pytest

Installing new version

See https://docs.python.org/3.1/distutils/uploading.html

python3 setup.py sdist upload

Requirements

scrapy-state requires the following modules.

  • Python 3.6+

Changelog

Scrapy state between job runs. Recreating spider's state from settings. See https://medium.com/@alex_ber/scrapy-state-between-job-runs-b880c7b34a9d

All notable changes to this project will be documented in this file.

#https://pypi.org/manage/project/scrapy-state/releases/

[Unrelased]

[0.0.1] - 02/07/2020

Added

  • SpiderSettingsState class in alexber.spiderstate.state module. Inspired by scrapy.extensions.spiderstate
  • See [https://medium.com/@alex_ber/scrapy-item-with-general-fields-7552bd6e4622] for description.

Project details


Download files

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

Source Distribution

scrapy-state-0.0.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

scrapy_state-0.0.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file scrapy-state-0.0.1.tar.gz.

File metadata

  • Download URL: scrapy-state-0.0.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for scrapy-state-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5313cc7a27ea2d502e23e67bbd0cbf4b8ef07f755681e45c87253385fa37b33e
MD5 1137a9e2d1ee320b1389318624f6cc06
BLAKE2b-256 bee300d188dec85b45e3c23c7c85976ad45d5b6940b2b1915fedc065db9086e1

See more details on using hashes here.

File details

Details for the file scrapy_state-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: scrapy_state-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for scrapy_state-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a12ec3b27d060c185692016be069b9dd73f9975991cbc73b5e23501136f0a882
MD5 1115af8d348232a4195b04e8df4cc53d
BLAKE2b-256 aac630bfda1869e799e02d7c614ffd9a951f71a723305868369e24f2c08d7c58

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