seleniumbase / SeleniumBase

📊 Python's all-in-one framework for web crawling, scraping, testing, and reporting. Supports pytest. UC Mode provides stealth. Includes many tools.
https://seleniumbase.io
MIT License
5.17k stars 960 forks source link

Can SeleniumBase bypass Cloudflare inside Google Form? #2909

Closed bao1311 closed 3 months ago

bao1311 commented 3 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 3 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 3 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