ultrafunkamsterdam / undetected-chromedriver

Custom Selenium Chromedriver | Zero-Config | Passes ALL bot mitigation systems (like Distil / Imperva/ Datadadome / CloudFlare IUAM)
https://github.com/UltrafunkAmsterdam/undetected-chromedriver
GNU General Public License v3.0
9.2k stars 1.1k forks source link

multithreading #261

Open viper645 opened 2 years ago

viper645 commented 2 years ago

Can u support monkeypatch mode on V2? Because I want to multithread and for some reason only monkeypatch mode works for that.

error: Screenshot_2

code: Screenshot_3

ankurpandeyvns commented 2 years ago

Same issue!

nathan-mhk commented 2 years ago

I got the same error as you. (I am using ThreadPoolExecutor)

Sometimes I have to delete the chromedriver.exe in %APPDATA%\undetected_chromedriver\chromedriver.exe before running the script. Otherwise the script will just quit.

Each of my thread loops through a list of URLs. Despite deleting chromedriver.exe, driver.get(url) will halt indefinitely on the 5th iteration. Even if I only launch a single thread using ThreadPoolExecutor, this problem still happens.

ankurpandeyvns commented 2 years ago

Passing the path to the executable fixed it for me

YavuzDev commented 2 years ago

Passing the path to the executable fixed it for me

I tried this but it doesn't work.

Has anyone been able to fix this issue?