Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

CloudflareChallengeError with valid API key #62

@nub-rin

Description

@nub-rin

I am still getting the Detected a Cloudflare version 2 Captcha challenge, This feature is not available in the opensource (free) version. in my code, even when I am trying to use the captcha parameter.

pythos-aternos version is 2.1.3
python version is 3.9.15

here is my code

from python_aternos import Client

class Aternos:
    def __init__(self, user, password):
        self.user = user
        self.password = password
        self.login_status = False

    def login(self):
        try:
            self.at_client = Client.from_credentials(self.user, self.password, captcha={
                'provider': 'capmonster',
                'clientKey': '<MY_CAPMONSTER_KEY>'
            })
            self.login_status = True
            return True
        except Exception as e:
            return [False, e]

    def server_list(self):
        if not self.login_status:
            return 'Bot is not logged in Aternos, please use /login first'
        return self.at_client.list_servers()


TEST_USER = '<MY_ATERNOS_USERNAME>'
TEST_PASSWORD = '<MY_ATERNOS_PASSWORD>'

if __name__ == '__main__':
    at = Aternos(TEST_USER, TEST_PASSWORD)
    print(at.login())

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcloudflareIssues related to CloudScraper, Cloudflare and captcha bypassing

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions