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
- Download the exact chrome driver based on your OS and installed chrome version.
- Remove browser control flag
- Remove signature in javascript
- Set User-Agent
- Start maximum resolution
- Open Chrome Instance on debugging mode
- Control an existing Chrome instance.
- Unmute the sounds of the browser.
- Save/ load Chrome profiles.
- Run Chrome driver on headless mode.
Installation
pip install lucd
or
pip install git+https://github.com/SelmiAbderrahim/CreateUndetectableChromeDriver/blob/master/lucd/screenshots/antibot-tested.png
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/
Metadata
Release files for lucd 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lucd-0.2.1.tar.gz | 8.5 kB | Without provenance | Details for lucd-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lucd-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for lucd-0.2.1-py3-none-any.whl |
Total release size: 17.7 kB
Release files / lucd-0.2.1.tar.gz
| Download URL | lucd-0.2.1.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a7491150594f35ded1b27ecf31b1aa812cff4365aa49ba14b24049072e8cea9
|
|
BLAKE2b-256 checksum How to use checksums |
2c5bfa7236db39ab9aecb599f544fb4c826de652eabbaa1013e14fef44b70b7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Release files / lucd-0.2.1-py3-none-any.whl
| Download URL | lucd-0.2.1-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7bc17ea958636161caea0ebe526cb92442bc3fd22177eae4e593676142cb0142
|
|
BLAKE2b-256 checksum How to use checksums |
74dc3b2725b714dc305a3c7d5584a39ba5d3dc732020b67358d23b1b729309ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Security for lucd 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.