Skip to content

looma12reais/undetected

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

416 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Undetected

PyPI - Version PyPI - Python Version License Downloads

Undetectable selenium chromedriver.

Note: This project is a fork of undetected-chromedriver.

Installation

pip install undetected

Simple Usage

import undetected as uc

driver = uc.Chrome()
driver.get("https://example.com")
driver.quit()

Example Usage with Multiprocessing

import undetected as uc
from undetected.patcher import Patcher
import multiprocessing as mp

def worker(idx: int):
    driver = uc.Chrome(user_multi_procs=True)
    driver.get("https://example.com")
    driver.quit()

if __name__ == "__main__":
    Patcher.patch()  # patching a unique undetected chromedriver

    processes = [mp.Process(target=worker, args=(i,)) for i in range(4)]
    for p in processes:
        p.start()
    for p in processes:
        p.join()

Releases

Packages

Contributors

Languages