2captcha-python icon indicating copy to clipboard operation
2captcha-python copied to clipboard

AttributeError: 'TwoCaptcha' object has no attribute 'hcaptcha'

Open JakubLudvik opened this issue 1 year ago • 2 comments

solver = TwoCaptcha('Hidden)

try:
    login_response = requests.post('https://discord.com/api/v9/auth/login', json=login_payload)

    captcha_key = solver.hcaptcha(
        sitekey='f5561ba9-8f1e-40ca-9b5b-Hidden',
        url='https://discord.com/api/v9/auth/login')

    login_response.raise_for_status()
except requests.exceptions.HTTPError as err:
    print(f"Login Failed with status code {err.response.status_code}: {err.response.text}")
    raise

JakubLudvik avatar Dec 10 '23 01:12 JakubLudvik

@JakubLudvik Good afternoon, try running the code using the python3 command. Example: python3 main.py Or use a virtual environment.

And please let me know the result.

poplers24 avatar Jun 11 '24 11:06 poplers24

Please check https://github.com/2captcha/2captcha-python/issues/68#issuecomment-1920974503

kratzky avatar Jul 22 '24 09:07 kratzky