🤬
Enable build support by adding .buildspec.yml
README.md Loading last commit info...
cloudflare_bypass.py
example.gif
requirements.txt
README.md

Cloudflare Bypass Script - Updated in 01.02.2024

This Python script is designed for educational purposes and demonstrates a basic method for interacting with websites protected by Cloudflare. Please use this script responsibly and only on websites for which you have proper authorization.

Prerequisites

Before running the script, ensure that you have the following prerequisites installed:

Installation

  1. Clone this repository to your local machine:

git clone https://github.com/sarperavci/CloudflareBypassForScraping.git

  1. Navigate to the project directory:

cd CloudflareBypassForScraping

  1. Install the required Python packages:

pip install -r requirements.txt

Usage

  1. Edit the script to specify the URL of the website you want to interact with and don't forget to change browser_path from the file (line:17). It both works in Windows and Linux, without requiring webdriver. It directly works with the browser:

# Change this line to your desired website URL

driver.get('https://example.com')

  1. Run the script:

python cloudflare_bypass.py

  1. The script will attempt to bypass the Cloudflare protection and interact with the specified website. Please be patient as it may take some time to complete. Ensure that you only use this script on websites where you have explicit authorization.

Drissionpage

To find out how to use DrissionPage, which I used in this script as a controller, check out the documentation of it. Be sure while reading you use an English translate, otherwise it'll be a lot harder :D

Disclaimer

This script is provided solely for educational purposes. Unauthorized use of this script to bypass security measures, including Cloudflare, may violate the law and ethical guidelines. Always obtain proper authorization before interacting with websites.

Please wait...
Page is in error, reload to recover