Compare commits

...
This repository has been archived on 2024-07-30. You can view files and clone it, but cannot push or open issues or pull requests.

4 commits

Author SHA1 Message Date
04ba96108e
Edit readme + increment version 2024-02-15 18:05:51 +04:00
53abd2725b
Last version 2024-02-15 17:38:18 +04:00
5561ee133d
Merge pull request #99 from TeslaOwls/main
#97 fixing issue after aternos changed 'user' to 'username' in http GET data
2023-11-03 14:52:16 +04:00
Romain Hedouin
4f19e3395c fixing issue after aternos changed 'user' to 'username' in http GET data 2023-10-27 01:05:00 +02:00
3 changed files with 24 additions and 18 deletions

View file

@ -1,7 +1,7 @@
<div align="center">
<img src="https://i.ibb.co/3RXcXJ1/aternos-400.png" alt="Python Aternos Logo">
<h1>
Python Aternos
[UNMAINTAINED] Python Aternos
<div>
<a href="https://pypi.org/project/python-aternos/">
<img src="https://img.shields.io/pypi/v/python-aternos">
@ -22,16 +22,21 @@
An unofficial Aternos API written in Python.
It uses [aternos](https://aternos.org/)' private API and html parsing.
> **WARNING**
> [!WARNING]
>
> Aternos now trying to detect python-aternos requests
> by finding bugs in custom JavaScript parser.
> This library is no longer maintained, because:
> 1. Aternos started detecting all automated requests (and, therefore, ToS violations)
> via JS code in `AJAX_TOKEN` which is executed incorrectly in Js2Py and
> requires a NodeJS DOM library (at least) or a browser engine.
> For details, see [#85](https://github.com/DarkCat09/python-aternos/issues/85).
> 2. Aternos frontend is protected with Cloudflare, so this library fails to parse pages
> in case of, for example, blocked or suspicious IP address (e.g. web hosting).
> CF shows IUAM page, often with captcha. We need a browser engine like undetected-chromedriver and an AI or a man solving captchas.
> 3. Last Aternos API update broke nearly everything.
> 4. I have no more motivation and not enough time to work on this, nor need in using Aternos.
>
> Please, always keep the library up-to-date.
>
> I'm going to use Selenium in this library later
> (but you'll still be able to choose between
> lightweight HTML parsing and running a browser).
> I'm so sorry. If you want to continue development of python-aternos,
> [contact me](https://url.dc09.ru/contact), but I think it's better to write from scratch.
Python Aternos supports:
@ -41,7 +46,7 @@ Python Aternos supports:
- Parsing Minecraft servers list
- Parsing server info by its ID
- Starting/stoping server, restarting, confirming/cancelling launch
- Updating server info in real-time (see [WebSocket API](https://aternos.dc09.ru/howto/websocket))
- Updating server info in real-time (see [WebSocket API](https://python-aternos.codeberg.page/howto/websocket))
- Changing server subdomain and MOTD (message-of-the-day)
- Managing files, settings, players (whitelist, operators, etc.)
@ -119,9 +124,9 @@ if testserv is not None:
## [More examples](https://github.com/DarkCat09/python-aternos/tree/main/examples)
## [Documentation](https://aternos.dc09.ru)
## [Documentation](https://python-aternos.codeberg.page)
## [How-To Guide](https://aternos.dc09.ru/howto/auth)
## [How-To Guide](https://python-aternos.codeberg.page/howto/auth)
## Changelog
|Version|Description |
@ -137,8 +142,9 @@ if testserv is not None:
|v2.1.x|Fixes in websockets API, atconnect (including cookie refreshing fix). Support for captcha solving services (view [#52](https://github.com/DarkCat09/python-aternos/issues/52)).|
|v2.2.x|Node.JS interpreter support.|
|v3.0.0|Partially rewritten, API updates.|
|v3.1.x|Full implementation of config API.|
|v3.2.x|Shared access API and maybe Google Drive backups.|
|v3.0.5|Unmaintained.|
|v3.1.x|TODO: Full implementation of config API.|
|v3.2.x|TODO: Shared access API and maybe Google Drive backups.|
## Reversed API Specification
Private Aternos API requests were captured into

View file

@ -92,7 +92,7 @@ class Client:
self.atconn.generate_sec()
credentials = {
'user': username,
'username': username,
'password': md5,
}

View file

@ -5,9 +5,9 @@ with open('README.md', 'rt') as readme:
setuptools.setup(
name='python-aternos',
version='3.0.4',
author='Chechkenev Andrey (@DarkCat09)',
author_email='aacd0709@mail.ru',
version='3.0.6',
author='Andrey @DarkCat09',
author_email='py@dc09.ru',
description='An unofficial Aternos API',
long_description=long_description,
long_description_content_type='text/markdown',