Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Example of how bypass Google reCaptcha v2 with Seleniumbase(cdp mode) and buster captcha solver extension. #3900

Pedro0152 started this conversation in Ideas
Discussion options

just download the Buster extension

from seleniumbase import SB
def solve_recaptcha_with_buster(SB):
 extension_path = r"C:\Users\path\to_extension\buster_captcha_solver_for_humans-3.1.0-chrome"
 with SB(uc=True,headless=False,extension_dir=extension_path) as sb: 
 sb.open('https://www.google.com/recaptcha/api2/demo')
 sb.wait_for_element('iframe[title="reCAPTCHA"]', timeout=10)
 sb.switch_to_frame('iframe[title="reCAPTCHA"]')
 try:
 sb.wait_for_element('#recaptcha-anchor', timeout=5)
 sb.click('#recaptcha-anchor')
 print("Clicked reCAPTCHA checkbox")
 except Exception as e:
 print(f"Could not click reCAPTCHA checkbox: {e}")
 sb.switch_to_default_content()
 sb.switch_to_frame('iframe[title="recaptcha challenge expires in two minutes"]')
 try:
 sb.wait_for_element('.help-button-holder', timeout=5)
 sb.click('.help-button-holder')
 print("Clicked reCAPTCHA solve button")
 except Exception as e:
 print(f"Could not click reCAPTCHA checkbox: {e}")
 input()
solve_recaptcha_with_buster(SB)

@mdmintz the extension .zip size is only 348KB, can be added in the /extensions folder 🥺?

Update:
I saw that the buster solver already was proposed by @gongchandang49 in #2908. I still will keep the discussion to show the example for people finding a way to bypass the reCaptcha v2. (also work in headless mode)

You must be logged in to vote

Replies: 1 comment

Comment options

That's more than 15X the size of the current largest extension, which is disable_csp at 20KB.

Screenshot 2025年07月23日 at 12 08 52 AM
You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /