Skip to main content

Scrapy extension to sync `.scrapy` folder to an S3 bucket

Project description

Scrapy extension to sync .scrapy folder to an S3 bucket.

Installation

You can install scrapy-dotpersistence using pip:

pip install scrapy-dotpersistence

You can then enable the extension in your settings.py:

EXTENSIONS = {
    ...
    'scrapy_dotpersistence.DotScrapyPersistence': 0
}

How to use it

Enable extension through settings.py:

DOTSCRAPY_ENABLED = True

Configure the exension through settings.py:

ADDONS_AWS_ACCESS_KEY_ID = "ABC"
ADDONS_AWS_SECRET_ACCESS_KEY = "DEF"
ADDONS_AWS_USERNAME = "username"
ADDONS_S3_BUCKET = "test-bucket-name"

You can change a dotpersistence folder path with environ:

export DOTSCRAPY_DIR='/tmp/.scrapy'

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

scrapy_dotpersistence-0.2.2-py2-none-any.whl (4.2 kB view details)

Uploaded Python 2

File details

Details for the file scrapy_dotpersistence-0.2.2-py2-none-any.whl.

File metadata

File hashes

Hashes for scrapy_dotpersistence-0.2.2-py2-none-any.whl
Algorithm Hash digest
SHA256 45af14c15d5bed543c24a386484640e5f0f9305126d9e5c854d40b6dbb5812fc
MD5 108665d04758af787d7f8764562242e0
BLAKE2b-256 86cd870b5af95e4ee47ccf86a55cae8d03e9e25961c411278d0fb738f133c9fb

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