Skip to main content

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

undetected_updated-1.0.2.tar.gz (55.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

undetected_updated-1.0.2-py3-none-any.whl (69.5 kB view details)

Uploaded Python 3

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

Hashes for undetected_updated-1.0.2.tar.gz
Algorithm Hash digest
SHA256 bfd852ab2ecf0d22d2d4e125628377cd883946623281b1e1d5fbeb6870bd0fbc
MD5 dc92a2a6d912007af94f0bc5ea0b3600
BLAKE2b-256 bd7a8013cd67b96fdd4987b544448f2e5d088e47c12aee2cfe1e5642cb7b9481

See more details on using hashes here.

Provenance

The following attestation bundles were made for undetected_updated-1.0.2.tar.gz:

Publisher: publish.yml on dornech/undetected

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file undetected_updated-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for undetected_updated-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 91ea0712b240c45f2799e56b8d3326ffa32b1f2a1c20022973d812d0f9391524
MD5 4acffdb2fae08a684fed039f177c3253
BLAKE2b-256 5fa5ce814a95ca6209a3eaa2823629a567f2dad86ff4a46ee14ff5fd51c1186f

See more details on using hashes here.

Provenance

The following attestation bundles were made for undetected_updated-1.0.2-py3-none-any.whl:

Publisher: publish.yml on dornech/undetected

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page