GithubHelp home page GithubHelp logo

tufayellus / cloudflare-bypass-python-code Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 710 KB

This template repository contains python code that implements nodriver library to load website and solve(manually/automated) captcha that fails with selenium/undetected chromedriver

Python 2.30% HTML 63.75% JavaScript 5.82% CSS 28.14%
antibot-bypass antibot-solver bypass-bot-detection-systems cloudflare-bypass cloudflare-bypass-script cloudflare-bypasser nodriver python

cloudflare-bypass-python-code's Introduction

Cloudflare Bypass Python Code

This template repository contains Python code that implements nodriver library to load websites and solve(manually/automated) captcha that fail with selenium/undetected chromedriver
Nodriver library is an official successor of undetected chromedriver library that gets rid of relying on webdriver files completely. This is also capable of convincing websites as a regular browser so that the bot detection ratio is minimal. In many websites, undetected chromedriver fails to pass Cloudflare browser verification. In those cases, nodriver does wonders and can load such websites easily. As an automation software developer, I used this library in my client projects that have Cloudflare protection and it helps in my process.

Installation command

pip install nodriver

Concept

You can use nodriver to load a website and get its source code. An example code can be like below

import nodriver as uc
from bs4 import BeautifulSoup as bs
driver = await uc.start()
page = await driver.get("https://google.com")
text = await page.get_content()
soup = bs(text, 'html.parser')
print(soup.find("body").text)
driver.stop()

Documentation Page Link for nodriver Library

Click here

How to set 2captcha api key?

Put this in https://github.com/TufayelLUS/Cloudflare-Bypass-Python-Code/blob/main/plugin/2captcha/common/config.js file's apiKey placeholder. The rest of the extension operation is automated. If you want to enable/disable other 2captcha auto-detection, you can do so in the same config file.

cloudflare-bypass-python-code's People

Contributors

tufayellus avatar

Stargazers

Syed Usama Ahmad avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.