Open nub-rin opened 1 year ago
Thanks for reporting! I'll try to fix it.
Just checking up, Any updates?
@nub-rin,
I'm so sorry for the long waiting.
I've noticed that the problem is in re-instantiating CloudScraper
session object in atconnect module.
Expect the bugfix tomorrow.
@nub-rin, @Aeron-Emory,
please, update to the latest v3.0.1:
pip install -U python-aternos
And check if API key works.
Alright!, I'll give it a try right now, and let you know if it works or not. ^^
I did give it a try as well, but still no luck. All I did was,
# Import
from python_aternos import Client
# Create object
aternos = Client()
aternos.atconn.session.captcha = {
'provider': '2captcha',
'api_key': 'apikeyhere',
}
# Log in
# with username and password
aternos.login('usernamehere', 'passwordhere')
# Get servers list
servs = aternos.list_servers()
# Get the first server
myserv = servs[0]
# Start
myserv.start()
The response:
$ python at.py
cloudscraper.exceptions.CloudflareChallengeError: Detected a Cloudflare version 2 Captcha challenge, This feature is not available in the opensource (free) version.
Hey @DarkCat09! It didn't even asked for any captcha, in fact the above code is invalid as .from_credentials is not a attribute for the class Client apprently. Regardless the .login() attribute works and I am able to login.
Thanks!
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