Undetected
A Selenium Chrome drop-in that hardens automation against common bot checks.
It patches the chromedriver binary (CDC / test-type=webdriver) and injects page-level scripts on every uc.Chrome() session (CDP leak cleanup, navigator.webdriver, chrome runtime, iframes, WebGL, and more).
Note: Fork of undetected-chromedriver. Results vary - these patches help, but they are not a guarantee against every detector.
This repository is a fork of the fork with following changes:
- switch backend to flit allowing proper build (hatch does not work with setup-dist)
- make injections optional due to bot-detection issues
Installation
pip install git+https://github.com/lovebrownie/undetected.git
Simple Usage
import undetected as uc
driver = uc.Chrome()
driver.get("https://bot.sannysoft.com/")
driver.quit()
import undetected as uc
options = uc.ChromeOptions()
options.languages = ["fr-FR", "fr"]
driver = uc.Chrome(options=options)
driver.get("https://bot.sannysoft.com/")
driver.quit()
Multi-Threading
import undetected as uc
import threading
def worker(idx: int):
driver = uc.Chrome(user_multi_procs=True)
driver.get("https://www.google.com/")
driver.quit()
if __name__ == "__main__":
threads = [threading.Thread(target=worker, args=(i,)) for i in range(4)]
for t in threads:
t.start()
for t in threads:
t.join()
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file undetected_updated-1.0.2.tar.gz.
File metadata
- Download URL: undetected_updated-1.0.2.tar.gz
- Upload date:
- Size: 55.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfd852ab2ecf0d22d2d4e125628377cd883946623281b1e1d5fbeb6870bd0fbc
|
|
| MD5 |
dc92a2a6d912007af94f0bc5ea0b3600
|
|
| BLAKE2b-256 |
bd7a8013cd67b96fdd4987b544448f2e5d088e47c12aee2cfe1e5642cb7b9481
|
Provenance
The following attestation bundles were made for undetected_updated-1.0.2.tar.gz:
Publisher:
publish.yml on dornech/undetected
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
undetected_updated-1.0.2.tar.gz -
Subject digest:
bfd852ab2ecf0d22d2d4e125628377cd883946623281b1e1d5fbeb6870bd0fbc - Sigstore transparency entry: 2503275784
- Sigstore integration time:
-
Permalink:
dornech/undetected@ae6f1992002c36fb8264fcf317ceede434b7fa85 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/dornech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ae6f1992002c36fb8264fcf317ceede434b7fa85 -
Trigger Event:
push
-
Statement type:
File details
Details for the file undetected_updated-1.0.2-py3-none-any.whl.
File metadata
- Download URL: undetected_updated-1.0.2-py3-none-any.whl
- Upload date:
- Size: 69.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91ea0712b240c45f2799e56b8d3326ffa32b1f2a1c20022973d812d0f9391524
|
|
| MD5 |
4acffdb2fae08a684fed039f177c3253
|
|
| BLAKE2b-256 |
5fa5ce814a95ca6209a3eaa2823629a567f2dad86ff4a46ee14ff5fd51c1186f
|
Provenance
The following attestation bundles were made for undetected_updated-1.0.2-py3-none-any.whl:
Publisher:
publish.yml on dornech/undetected
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
undetected_updated-1.0.2-py3-none-any.whl -
Subject digest:
91ea0712b240c45f2799e56b8d3326ffa32b1f2a1c20022973d812d0f9391524 - Sigstore transparency entry: 2503275899
- Sigstore integration time:
-
Permalink:
dornech/undetected@ae6f1992002c36fb8264fcf317ceede434b7fa85 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/dornech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ae6f1992002c36fb8264fcf317ceede434b7fa85 -
Trigger Event:
push
-
Statement type: