Questions tagged [undetected-chromedriver]

undetected-chromedriver is an optimized selenium.webdriver.Chrome drop-in, to prevent being triggered by anti-bot services like Distil / CloudFlare / Imperva / DataDome and such. main classes: Chrome, ChromeOptions

undetected-chromedriver

undetected_chromedriver is an optimized Selenium Chromedriver patch which does not trigger anti-bot services like Distill Network / Imperva / DataDome / Botprotect.io Automatically downloads the driver binary and patches it.

237 questions
0
votes
0 answers

Using Working Python HTTPS Proxies with Selenium 4.10 (Bot Detection and Errors)

I have been scouring the internet for making my Selenium Web crawler work with proxies. My System is Mac OS High Sierra 10.13.6 I'm currently updated to Selenium 4.10, Python 3.11.4 and have made some code to log into my web page. I was testing both…
0
votes
0 answers

Error in my script related to the Chrome driver

I am using a script to automate a process, and I want to implement undetected chrome driver. However, when I do so, the script doesn't work correctly as it opens the Chrome window but closes it instantly. I believe it's an issue related to the…
0
votes
0 answers

Selenium - undetected_chromedriver python: How to load a packed .crx extension file to undetected_chromedriver?

I know how to load an unpacked/extracted extension file but Is there any way to load an extension in .crx format within undetected_chromedriver? I have been trying to automate a chrome extension and it has worked perfectly fine in the normal…
0
votes
0 answers

How do I deal with "stuck" headless chrome instances?

I'm running my Python script with 50 threads, therefore 50 chrome browsers will be open at any given time. The issue is, rarely, an unknown amount of browsers will get stuck - therefore limiting performance. And eventually, after a few hours, all…
0
votes
0 answers

Selenium window.stop(); does not work when pageLoadStrategy = "none" in undetected-chromedriver

I'm using undetected_chromedriver and trying to stop the page loading, but the code stops when I call execute_script("window.stop();") and waits for the page to finish loading. The code is still waiting for the page to finish loading. Code: import…
0
votes
1 answer

Undetected Chromedriver suddenly started to get stuck in captchas

I wrote about 10 scrapper using undetected chromedriver. They were working all fine until i wanted to create a next one. I started working on it and suddenly i started geting timeouts. When i removed headless, i saw that the cloudflare waiting room…
0
votes
0 answers

instantiating undetected_chromedriver on railway.app instance using nixpacks

I am trying to host a headless web crawling service on railway.app which uses nixpacks to build and deploy the project. Running the project locally, everything runs smoothly and I can successfully create a headless chromedriver instance. However,…
0
votes
0 answers

Python, undetected chromedriver

i got a code for load cookies to binance.com (i dump them before and save in cookies.pkl) So i try to load it to the site, but it didn't login me and back to register page. How to solve it ? `here is my code: pickle.dump(driver.get_cookies(),…
0
votes
1 answer

Python selenium times out even if the element is visible & clickable

I'm writing a bot to automate a browser game with Selenium. When an error happens, the bot automatically pauses the driver. Even when the button element is clearly visible in the browser, selenium times out after not finding the element. gold_btn =…
0
votes
0 answers

selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:58971 from chrome not reachable

I am running the following Python script in AWS EC2: import undetected_chromedriver as uc uc_options = uc.ChromeOptions() uc_options.add_argument("--headless=new") driver = uc.Chrome(options = uc_options, version_main = 114) My…
0
votes
1 answer

My Chrome driver is bugged because of undetected crhome browser

my script was working fine until I tried using the undetected chrome browser. When I installed it, I encountered the following error: "WebDriver.init() got an unexpected keyword argument 'chrome_options'". I uninstalled it and attempted to use my…
0
votes
0 answers

Undetected Chrome driver getting banned

I have this function. And I am using undetected chrome driver python. def getDriver(n): options = ChromeOptions() driver = Chrome(options=options) driver.get("https://www.google.com") time.sleep(2) …
0
votes
2 answers

undetected-chromedriver does not quit properly after script execution is complete

I use driver.quit() at the end of my code, and it closes the Chrome window as expected, but when checking Task Manager on Windows after script execution is complete, I find Chrome tasks that are eating up the CPU - and I'm certain that those tasks…
ZZZ
  • 161
  • 1
  • 8
0
votes
0 answers

TimeoutException undetected_chromedriver

I have a web scraper using python with undetected_chromedriver. It is installed in a Windows Server 2016 from Amazon Lightsail. I am using RDP to access the server and to execute the script in cmd. When I execute the script it works perfectly fine,…
0
votes
1 answer

How can I use undetected_chromedriver to __init__ function?

I have this project where I have to write a lot of code so I try to break my code into modules and packages where you have a init python file and whatnot. When I tried it with normal selenium webdriver, it worked successfully. But when I switched to…