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

undetected_chromedriver is unable to reopen Chrome window if it was closed/quit

import undetected_chromedriver as uc options = uc.ChromeOptions() options.add_argument('--disable-popup-blocking') ... if step == "0" and not stop_execution: while True: try: driver = uc.Chrome(options=options) …
Hao
  • 3
  • 4
0
votes
0 answers

Why is my webdrive being skipped when specific variable is used

When I use webdrive to click on element and if I put specific variable in it, it just skips over the webdriver and continues to run the rest of code. Variable in question is market3 and if instead of {market3} I put any other text it works…
0
votes
0 answers

Undetected_chromedriver click method gets detected?wen scraping a site

Using UC latest, if I driver.get the page and 'element.click() of safeclick' a button, the site detects I'm a bot and either captchas me or doesn't load the next page properly. But if I driver.get it and click the button manually, the site works…
0
votes
0 answers

Why does Selenium get stuck on a blank page if I don't manually check?

Selenium stuck if I don't manually check My bot runs on server and when I check if it works there isn't any problem. But when I close my server it doesn't work after a while. When I check again I see opened drivers with a blank page, and after I…
0
votes
0 answers

Undetected-chromedriver blocked by Cloudflare

I'm using python with undetected_chromedriver to try and crawl https://www.carrefour.fr/ but are being blocked by the Cloudlflare challenge. The code below works fine when I run it locally on my mac but when tested in an Ubuntu container on AWS, it…
0
votes
1 answer

Python bypass Cloudflare using headless selenium while opening the new tab

I have a website to be scraped, daily around 10k-20k visits to the page. I did it for more than 1 month, and everything is fine. I can access it using the non-selenium browser. For now, using the Selenium browser, there is Cloudflare which blocks…
0
votes
0 answers

Python and undetected Chrome creating too many instances

I am using Pythons Selenium and Undetected Chrome for web-scraping. I have something like the following code: from selenium import webdriver from selenium.webdriver.common.keys import Keys import time import random from bs4 import BeautifulSoup from…
user113156
  • 6,761
  • 5
  • 35
  • 81
0
votes
0 answers

How to run hcaptcha callback function

I'm trying to run the callback function for the hcaptcha but it keeps giving me the null (reading 'appendChild') error, If anyone has any other suggestions, I'd appreciate it. import os import threading import time import nopecha import…
0
votes
0 answers

Undetected_Chromedriver is not using the user-data folder that I specified

I'm trying to make undetected_chromedriver use specific user-data of chrome that I put in a folder on my desktop, but it's not using that folder, it's rather using the default folder of chrome, while normal selenium webdriver seems to work. The…
0
votes
0 answers

How to reduce the amount of logs reported by undetected chromedriver?

I've written a wrapper for the Undetected Chromedriver. It works well enough but it generates a huge amount of logs. At least the following for EACH call to the method. 2023-04-26 10:14:33: undetected_chromedriver.patcher: INFO: patching driver…
Eric McLachlan
  • 3,132
  • 2
  • 25
  • 37
0
votes
0 answers

Selenium doesnt click on 'li' element

I am trying to press one 'li' element by CSS Selector with Selenium in Python. The URL. The problem is: when I run python code on windows computer, it works, when I run the same code on Linux Ubuntu server, it gets error. Here is my…
user20899166
0
votes
0 answers

Multithreaded undetected chromedriver issue

I currently coded a scrapping function that works in my django web app and is hosted on Heroku, the scrapping function works through Celery and uses Undetected_ChromeDriver. The main issue is that there seems to be a problem when running the driver…
0
votes
1 answer

undetected_chromedriver - is throwing TypeError: '<' not supported between instances of 'NoneType' and 'int' error

I'm trying to open chrome in headless mode with undetected_chromedriver (version='3.4.6') however throwing TypeError: '<' not supported between instances of 'NoneType' and 'int' error. Any suggestions please from undetected_chromedriver import…
0
votes
0 answers

Running multiple Undetected Chromedriver (Selenium) instances loop issue

I am running multiple selenium instances and I am encountering a problem. My code searches google by breaking down a string and typing it each character at a time using a loop. search_box = browser.find_element(By.NAME,…
0
votes
0 answers

Chromedriver installed but not working Linux

Hello folks, I have just installed Chromedriver on my Linux machine (Ubuntu 22 04 destro), and moved the directory after unzipping it to /usr/local/bin/ and when I execute chromedriver --version in my terminal it shows it's installed and it tells…