Skip to main content

scrapy-redis-httpcache

Cache Scrapy responses with Redis.

This package uses uv for project management. To get started, ensure that uv is installed on your machine and updated to the 0.5.6 version. Detailed installation instructions for uv can be found here.

Installation

uv add scrapy-redis-httpcache

Usage

Add the following settings to your Scrapy project settings file:

DOWNLOADER_MIDDLEWARES = {
    "scrapy.downloadermiddlewares.httpcache.HttpCacheMiddleware": 100,
    ...
}
HTTPCACHE_ENABLED = True
HTTPCACHE_EXPIRATION_SECS = ... # optional, defaults to 3600
HTTPCACHE_REDIS_DB = ... # optional, defaults to 0
HTTPCACHE_REDIS_HOST = ... # optional, defaults to "localhost"
HTTPCACHE_REDIS_PASSWORD = ... # optional, defaults to None
HTTPCACHE_REDIS_PORT = ... # optional, defaults to 6379
HTTPCACHE_REDIS_USERNAME = ... # optional, defaults to None
HTTPCACHE_STORAGE = "scrapy_redis_httpcache.RedisCacheStorage"

Development

uv sync --frozen --group=development
uv run --frozen pre-commit install --install-hooks
uv run --frozen pre-commit install --hook-type=commit-msg

Contributing

Contributions are welcome! To get started, please refer to our contribution guidelines.

Issues

If you encounter any problems while using this package, please open a new issue here.

Metadata

Release files for scrapy-redis-httpcache 1.4.0

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-redis-httpcache 1.4.0
File Size Uploaded Provenance Actions
scrapy_redis_httpcache-1.4.0.tar.gz 30.4 kB Without provenance Details for scrapy_redis_httpcache-1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scrapy-redis-httpcache 1.4.0
File Interpreter ABI Platform Actions
scrapy_redis_httpcache-1.4.0-py3-none-any.whl Python 3 none any Details for scrapy_redis_httpcache-1.4.0-py3-none-any.whl

Total release size: 34.4 kB

Release files / scrapy_redis_httpcache-1.4.0.tar.gz

Download URL scrapy_redis_httpcache-1.4.0.tar.gz
Size 30.4 kB
Tags Source
SHA-256 checksum
How to use checksums
aa15f9afbfd323ebbc29e8697be3a33fd31ded0388ce5a06b1ef82fac69f96e6
BLAKE2b-256 checksum
How to use checksums
9c05778d7c794b7b9e5069a3da1fae62058577ea559c18f2c7589800a6cd99be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.5.6

Release files / scrapy_redis_httpcache-1.4.0-py3-none-any.whl

Download URL scrapy_redis_httpcache-1.4.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d05df5d5bef72c4d8952bae8b9757436171b92c9adbbc637ef3c5cb69cfe225
BLAKE2b-256 checksum
How to use checksums
2134c0524af5c747d975acb965e16b4c83198fd64a3bae6ad51570506c7f5e50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.5.6

Security for scrapy-redis-httpcache 1.4.0

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.

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