Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Undetected Chromedriver Alternative

I am unable to run Undetected Chromedriver on Linux (Windows works fine). I am getting a timeout from renderer error and despite catching this error, UC hangs and the browser becomes unresponsive. Since I am unable to debug this, I want an alternative.

How can I replicate some of the functionality of Undetected Chromedriver, either through an alternative Python package or through code?

like image 939
Ned Hulton Avatar asked Oct 11 '25 10:10

Ned Hulton


2 Answers

You can use SeleniumBase's UC Mode as an alternative.

First pip install seleniumbase, and then run the following script with python:

from seleniumbase import Driver
import time

driver = Driver(uc=True, incognito=True)
driver.get("https://nowsecure.nl/#relax")
time.sleep(8)
driver.quit()
like image 74
Michael Mintz Avatar answered Oct 15 '25 18:10

Michael Mintz


try using webdriver with stealth example

browser = webdriver.Chrome(options=options) if ARGS.no_webdriver_manager else webdriver.Chrome(
    service=Service(ChromeDriverManager().install()), options=options)
    stealth(browser,
        languages=["en-US", "en"],
        vendor="Google Inc.",
        platform="Win32",
        webgl_vendor="Intel Inc.",
        renderer="Intel Iris OpenGL Engine",
        fix_hairline=True,
        )
    )
like image 39
edwinsanjo Avatar answered Oct 15 '25 19:10

edwinsanjo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!