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.96k stars 1.16k forks source link

Gmail Login gives captcha error with proxies #564

Open saifiipedia opened 2 years ago

saifiipedia commented 2 years ago

Whenever i try to login gmail with proxies it gives me captcha. image

also, someone told me to use stealth-selenium as it makes selenium much more undetected (Am not sure as undetectged chromedirver have this function builtin). But what concerns me is when i visit https://bot.sannysoft.com/ I see this: image

and this: image

its not about the Code in my python. i am using humanize trick to navigate through the pages and send characters.

this my chrome options:

def get_driver(background, viewports, agent, auth_required, path, proxy, proxy_type, pluginfile): options = webdriver.ChromeOptions() options.headless = background options.add_argument(f"--window-size={choice(viewports)}") options.add_argument("--log-level=3") options.add_experimental_option( "excludeSwitches", ["enable-automation", "enable-logging"]) options.add_experimental_option('useAutomationExtension', False) options.add_experimental_option( 'prefs', {'intl.accept_languages': 'en_US,en'}) options.add_argument(f"user-agent={agent}") options.add_argument("--mute-audio") options.add_argument("--disable-blink-features=AutomationControlled") options.add_argument('--no-sandbox') options.add_argument("--disable-plugins-discovery") options.add_argument("--ignore-certificate-errors") options.add_argument('--disable-dev-shm-usage') options.add_argument('--disable-features=UserAgentClientHint') options.add_argument("--disable-web-security")

What i am doing wrong here? is ther anything needs to be added? or its becuase my driver is being detected as bot somehow by Google?

ultrafunkamsterdam commented 2 years ago

you are using chrome 89(!) and proxies .. and expect google to be fooled.

himeshkothari commented 2 years ago

Facing the same issue with headless google-chrome-stable_100.0.4896.127-1_amd64.deb with undetected_chromedriver==3.1.5r4

Any solutions to mitigate Captcha?