cloudscraper
A Python module to bypass Cloudflare's anti-bot page.
Decision gist · record as of 2026-08-14
Yes, if you need to scrape or access Cloudflare-protected sites and are comfortable with the maintenance risk. The package is stable (Production/Stable status), has no known vulnerabilities, and low install friction. However, maintenance is aging—the last release was in April 2023—so if Cloudflare significantly changes their protection techniques, you may need to wait for updates or switch to an alternative. For one-off or low-stakes scraping, it's a reasonable choice; for mission-critical automation, monitor the repository closely or have a fallback plan.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a JavaScript interpreter/engine; the package defaults to a native Python solver but also supports Node.js, js2py, ChakraCore, or V8 if you install them separately.
- Low install friction with a pure-Python wheel distribution.
- Maintenance is aging—last release was in April 2023 and the last commit in June 2025, so updates are infrequent but the repository remains active and unarchived.
License · maintenance · safety
permissive license (permissive) — Licensed under MIT (permissive), so you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2023-04-25 (1207 days) · last repo commit 2025-06-10 · 6,701 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 4,830,393 downloads/mo, #2,219 on PyPI
Alternatives
Verify before relying
pip install cloudscraper
import cloudscraper
scraper = cloudscraper.create_scraper()
response = scraper.get('http://example.com')
print(response.text)- Whether the native Python solver is sufficient for current Cloudflare challenge variants or if an external JS engine is required in practice.
- How often Cloudflare's protection techniques change and whether cloudscraper's infrequent updates keep pace with those changes.
What it is and what it does
Cloudscraper is a Python wrapper around Requests that automatically detects and solves Cloudflare's anti-bot JavaScript challenges. When you make an HTTP request through a cloudscraper session to a site protected by Cloudflare's "I'm Under Attack Mode" (IUAM), the library intercepts the challenge page, executes the required JavaScript computation, and submits the solution—all transparently. The first request to a Cloudflare-protected site incurs a ~5-second delay while the challenge is solved; subsequent requests use cached tokens and proceed normally.
The package depends on Requests, requests-toolbelt, and pyparsing for core functionality, and it includes a built-in native Python solver for Cloudflare challenges. It can also delegate JavaScript execution to external engines (Node.js, js2py, ChakraCore, V8) if you install them. The API is identical to Requests—you call `scraper.get()`, `scraper.post()`, etc., and treat Cloudflare-protected sites as if they were unprotected.
Use it for
- Scrape or crawl websites protected by Cloudflare anti-bot without manual browser intervention or solving challenges by hand.
- Automate data collection from sites that use Cloudflare IUAM, such as news sites, e-commerce platforms, or research databases.
- Build web scrapers or bots that need to bypass Cloudflare protection as part of a larger data pipeline.
- Test your own Cloudflare-protected applications by writing automated HTTP clients that can pass the anti-bot checks.
- Fetch content from Cloudflare-protected APIs or endpoints in Python scripts without switching to a headless browser.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to scrape or access Cloudflare-protected sites and are comfortable with the maintenance risk.
The package is stable (Production/Stable status), has no known vulnerabilities, and low install friction. However, maintenance is aging—the last release was in April 2023—so if Cloudflare significantly changes their protection techniques, you may need to wait for updates or switch to an alternative. For one-off or low-stakes scraping, it's a reasonable choice; for mission-critical automation, monitor the repository closely or have a fallback plan.
Install
cloudscraper on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. Maintenance is aging—last release was in April 2023 and the last commit in June 2025, so updates are infrequent but the repository remains active and unarchived.
Requires a JavaScript interpreter/engine; the package defaults to a native Python solver but also supports Node.js, js2py, ChakraCore, or V8 if you install them separately.
License in practice
Licensed under MIT (permissive), so you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install cloudscraper
import cloudscraper
scraper = cloudscraper.create_scraper()
response = scraper.get('http://example.com')
print(response.text)
Verify before relying
- Whether the native Python solver is sufficient for current Cloudflare challenge variants or if an external JS engine is required in practice.
- How often Cloudflare's protection techniques change and whether cloudscraper's infrequent updates keep pace with those changes.
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagespyparsingrequestsrequests-toolbelt |
| Maintenance | Aging 1,207 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 4,830,393 / month, #2,219 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTPTopic :: Software Development :: Libraries :: Application FrameworksTopic :: Software Development :: Libraries :: Python Modules |
Evidence: cloudscraper-1.2.71-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “cloudflare bypass”
- cloudscraperBypasses Cloudflare's anti-bot protection by automatically solving…
- 2captcha-pythonA Python client for the 2Captcha API that automates captcha solving…
- scraplingScrapling is a web scraping and crawling framework that handles…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also wrapper-tls-requests · cloakbrowser · capsolver · 2captcha-python · anticaptchaofficial · undetected-chromedriver · curl-cffi · scrapling · primp · pyarmor.cli.core