Skip to main content
[![PyPI](https://img.shields.io/pypi/v/scrapy_cloudflare_middleware.svg)](https://pypi.python.org/pypi/scrapy_cloudflare_middleware)

## Scrapy "CloudFlare" middleware

A Scrapy Middleware to bypass the CloudFlare's anti-bot protection, based on [cloudflare-scrape](https://github.com/Anorov/cloudflare-scrape).

### Installation
```
pip install scrapy_cloudflare_middleware
```

### Usage

Add the middleware to your `DOWNLOADER_MIDDLEWARES` settings

```python
DOWNLOADER_MIDDLEWARES = {
'scraping_hub.middlewares.CloudFlareMiddleware': 560
}
```
The priority (560) is important, because we want this middleware to kick in just before the scrapy built-in `RetryMiddleware`.

Done. Happy scraping !








Metadata

Release files for scrapy-cloudflare-middleware 0.0.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-cloudflare-middleware 0.0.1
File Size Uploaded Provenance Actions
scrapy_cloudflare_middleware-0.0.1.tar.gz 2.1 kB Without provenance Details for scrapy_cloudflare_middleware-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scrapy-cloudflare-middleware 0.0.1
File Interpreter ABI Platform Actions
scrapy_cloudflare_middleware-0.0.1-py3-none-any.whl Python 3 none any Details for scrapy_cloudflare_middleware-0.0.1-py3-none-any.whl

Total release size: 5.9 kB

Release files / scrapy_cloudflare_middleware-0.0.1.tar.gz

Download URL scrapy_cloudflare_middleware-0.0.1.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c2157224c6e5df0ec8f572031f822ef696fbf4e06e45f78841bfd74ebdf58d58
BLAKE2b-256 checksum
How to use checksums
40a9318f4d04af28560ec676989ba419d4e43e5908a90fd5bd6a236b9ec5e178
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / scrapy_cloudflare_middleware-0.0.1-py3-none-any.whl

Download URL scrapy_cloudflare_middleware-0.0.1-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a288e419a6080361beec49093f6f4107cb43ddb252898dbc24ad8ce2941a21a1
BLAKE2b-256 checksum
How to use checksums
3f0c2b8f895012ae01ec40b780b4c100427fd002239b000bbe3833685e05c8f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for scrapy-cloudflare-middleware 0.0.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.

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