Just a simple ReCaptcha v3 bypass that returns the X-RECAPTCHA-TOKEN
token from an captcha.
- Python 3.6
- requests
- re (regex)
from bypass import ReCaptchaV3Bypass
# Initialize the ReCaptchaV3Bypass class with the anchor URL
# The anchor URL can be found when inspecting the network requests in the browser
url = "https://www.google.com/recaptcha/api2/anchor?ar=1&k=..."
bypass = ReCaptchaV3Bypass(url)
# Now call the bypass method with the bypass object and get the v3 token
gtk = bypass.bypass()
# Or you can just call it like this
gtk = ReCaptchaV3Bypass(url).bypass()