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.72k stars 1.14k forks source link

hCaptcha #905

Open jab2727 opened 1 year ago

jab2727 commented 1 year ago

Key issue: I'm trying to log into a site that's protected by hCaptcha. I'm able to log in on chrome normally, and I'm not asked to complete a captcha at all. When using selenium I'm asked to complete a captcha, which I do manually, and then receive an error message: Login failed, please try again.

Has anyone had success bypassing hCaptcha with undetected-chromedriver?

j-w-yun commented 1 year ago

You can use this extension to bypass hCaptcha/reCAPTCHA/FunCAPTCHA/AWS WAF. https://chrome.google.com/webstore/detail/nopecha-captcha-solver/dknlfmjaanfblgfdfebhijalfmhmjjjo

Source: https://github.com/NopeCHA/NopeCHA

options = uc.ChromeOptions()
options.add_argument("--load-extension=/home/PATH/TO/NOPECHA")
driver = uc.Chrome(options=options)
Martinzz commented 1 year ago

+1

404b commented 1 year ago

noCaptchaAi has free plan (6K req/month) you can use to solve hCaptcha, reCaptcha v2

Chrome Extension: https://github.com/noCaptchaAi/chrome-extension

Software Library: https://nocaptchaai.com/software

Selenium Packages :

https://github.com/Hammad69275/NoCaptchaSolver https://github.com/claudiofepereira/nocaptchaai-selenium

npm install nocaptchasolver

const {HCaptchaSolver} = require("nocaptchasolver")

const config = {
    apiKey,
    userAgent,
    siteKey,
    siteURL,
    enableLogger,
    loggerFunction,
    delay // in milliseconds (default is 7000ms)
}

const Solver = new HCaptchaSolver(config)