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
4.45k stars 908 forks source link

https://proxy-tools.com/proxy (reCAPTCHA) #2821

Closed MaxKarpyza closed 4 weeks ago

MaxKarpyza commented 4 weeks ago

On the site https://proxy-tools.com/proxy / when you click on "Show port" in the browser, the captcha passes without additional verification. However, if you use the script, an additional check appears. My script `from seleniumbase import SB

with SB(uc=True, test=True, locale_code="en") as sb: url = "https://proxy-tools.com/proxy/https" sb.driver.uc_open_with_reconnect(url, 1) sb.click('button:contains("Got")') sb.driver.uc_click('a[data-target="#showPorts"]') sb.switch_to_frame("iframe") sb.driver.uc_click('span[id="recaptcha-anchor"',reconnect_time=10) `

mdmintz commented 4 weeks ago

This is what I saw in a regular incognito browser without using Selenium:

Screenshot

Since UC Mode gives you the same results as a regular human-controlled browser, it got the same thing. reCAPTCHA is different from other 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