Skip to content

Kontuzijus/CloudflareBypassForScraping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudflare Bypass Script - Tested in 08.09.2023

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.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A cloudflare verification bypass script for webscraping

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 87.4%
  • Dockerfile 12.6%