SelmiAbderrahim / CreateUndetectableChromeDriver

Download undetectable chrome driver for selenium [Python]
MIT License
6 stars 4 forks source link

Create Local Undetectable Chrome Driver (LUCD)

This program will download and patch a Chrome driver to make it undetectable. So that you can use an undetectable Chrome driver for your Python Selenium code.

Passed the antibot test

Features



Installation

pip install lucd 

or

pip install git+https://github.com/SelmiAbderrahim/CreateUndetectableChromeDriver



Example

from lucd.driver import Driver
driver = Driver()
chrome = driver.create()



Usage

Create an undetectable Chrome driver

from lucd.driver import Driver
driver = Driver()

# headless browser
driver.headless = True

# Mute the browser
driver.mute = True

# Set the profile path
driver.profile = r"C:\\path\\profile"

# Change useragent
driver.useragent = "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36"

chrome = driver.create()

Control/open an existing Chrome driver

from lucd.driver import Remote
driver = Remote()

# Open Chrome on debugging mode and control it
chrome = driver.create()

# Control an existing Chrome driver
chrome = driver.create(control_existing_instance, port = 9222)



Tests

Clone the project

git clone https://github.com/SelmiAbderrahim/CreateUndetectableChromeDriver/blob/master/lucd/screenshots/antibot-tested.png

Create virtual environment

pip install virtualenv
virtualenv env
source env/bin/activate

Install requirements

pip install -r requirements.txt

Run tests

python -m pytest lucd/tests/