A simple Python module to bypass Cloudflare's anti-bot page (also known as "I'm Under Attack Mode", or IUAM), implemented with Requests.
This can be useful if you wish to scrape or crawl a website protected with Cloudflare. Cloudflare's anti-bot page currently just checks if the client supports Javascript, though they may add additional techniques in the future.
Due to Cloudflare continually changing and hardening their protection page, cfscrape requires Node.js to solve Javascript challenges. This allows the script to easily impersonate a regular web browser without explicitly deobfuscating and parsing Cloudflare's Javascript.
Note: This only works when regular Cloudflare anti-bots is enabled (the "Checking your browser before accessing..." loading page). If there is a reCAPTCHA challenge, you're out of luck. Thankfully, the Javascript check page is much more common.
Package Version | Update ID | Released | Package Hub Version | Platforms | Subpackages |
---|---|---|---|---|---|
2.1.1-bp156.3.1 info | GA Release | 2023-07-22 | 15 SP6 |
|
|
2.1.1-bp155.2.12 info | GA Release | 2023-05-22 | 15 SP5 |
|
|
2.1.1-bp154.1.25 info | GA Release | 2022-05-09 | 15 SP4 |
|
|
2.1.1-bp153.1.20 info | GA Release | 2021-03-06 | 15 SP3 |
|
|
2.1.1-bp152.1.1 info | GA Release | 2020-05-04 | 15 SP2 |
|
|
1.9.5-bp151.3.1 info | GA Release | 2019-07-17 | 15 SP1 |
|
|
1.9.5-bp151.2.10 info | GA Release | 2019-05-18 | 15 SP1 |
|
|
1.9.5-bp150.2.4 info | GA Release | 2018-07-30 | 15 |
|
|