--- id: cloudscraper version: "1.2.71" license: unclear license_treatment: permissive maintenance: aging --- # cloudscraper — A Python module to bypass Cloudflare's anti-bot page. License: permissive · Maintenance: aging · Downloads: 4.8M/mo ## 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 above — verify before relying. Bypasses Cloudflare's anti-bot protection by automatically solving JavaScript challenges, allowing HTTP requests to protected sites to succeed without manual intervention. 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 pip install cloudscraper uv add cloudscraper poetry add cloudscraper ## Installing cloudscraper 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. 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) 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. 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: not declared (permissive) - Python support: unspecified - Install friction: low - Maintenance: aging - Downloads: 4.8M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags cloudflare bypass, anti-bot scraping, cloudflare challenge solver, web scraping cloudflare, iuam bypass, cloudflare javascript challenge, requests cloudflare protection, web-scraping, cloudflare-bypass, anti-bot [View on SkillFed](https://skillfed.io/packages/cloudscraper) · [View on PyPI](https://pypi.org/project/cloudscraper/)