Package Info

python-cfscrape


Python module to bypass Cloudflare's anti-bot page


Development/Languages/Python

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.


License: MIT
URL: https://github.com/Anorov/cloudflare-scrape

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
2.1.1-bp155.2.12 info GA Release 2023-05-22 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-cfscrape
2.1.1-bp154.1.25 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-cfscrape
2.1.1-bp153.1.20 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-cfscrape
  • python3-cfscrape
2.1.1-bp152.1.1 info GA Release 2020-05-04 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-cfscrape
  • python3-cfscrape
1.9.5-bp151.3.1 info GA Release 2019-07-17 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-cfscrape
  • python3-cfscrape
1.9.5-bp151.2.10 info GA Release 2019-05-18 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-cfscrape
  • python3-cfscrape
1.9.5-bp150.2.4 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-cfscrape
  • python3-cfscrape