seleniumbase / SeleniumBase

📊 Blazing fast Python framework for web crawling, scraping, testing, and reporting. Supports pytest. Stealth abilities: UC Mode and CDP Mode.
https://seleniumbase.io
MIT License
5.45k stars 985 forks source link

Can SeleniumBase bypass Cloudflare inside Google Form? #2909

Closed bao1311 closed 4 months ago

bao1311 commented 4 months ago

I am automating myself to fill in a Google Form. However, when I click the submit button, I must solve the recaptcha. Attaching my user profile with normal Selenium will not make me do the recaptcha. I wonder if there is any way that I do not need to include my profile with Seleniumbase but can still bypass that Recaptcha. However, When I test the raw_form_turnstile.py inside examples, it does not work.

bao1311 commented 4 months ago

Oh, sorry, I just checked again and figured out that Recaptcha is different from Cloudflare. I wonder if we can bypass Recaptcha with SeleniumBase?

mdmintz commented 4 months ago

reCAPTCHA is different from other anti-bot services because it throws CAPTCHAs even if not detecting Selenium.

Instead of bypassing reCAPTCHA, solve the audio challenge with an external repo: https://github.com/search?q=pydub.AudioSegment.from_mp3+recaptcha+solver+language%3APython&type=code