Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JakubLudvik opened this issue Dec 10, 2023 · 1 comment
Open

Comments

@JakubLudvik
Copy link

JakubLudvik commented Dec 10, 2023

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

@poplers24
Copy link
Collaborator

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants