This is a reverse engineered API wrapper for https://monitoringminecraft.ru/, which allow you automate the process.
Project description
Python Minecraft-Monitoring API
This is a reverse engineered API wrapper for Minecraft-Monitroing.ru, which allow you automate the process.
Features:
- Log in with token (authautologin cookie)
- Add new server
- Remove exist server
- Edit exist server
- Display server list
- Support markdown
- Helpful params
Documentation:
Examples can be found in the /examples directory. To run these examples, replce auth_token
in your token.
client = Client('your_auth_token_here')
Finding Your Token:
Log into Minecraft-Monitroing.ru on any browser, then open your browser's developer tools (also known as "inspect") and look for the value of the authautologin
cookie in the following menus:
- Chromium: Devtools > Application > Cookies > monitoringminecraft.ru
- Firefox: Devtools > Storage > Cookies
- Safari: Devtools > Storage > Cookies
Using the Client:
To use this library, simply import minecraftmonitoring and create a minecraftmonitoring.Client instance. The Client class accepts the following arguments:
authautologin - The token to use.
user_agent - The user agent.
Regular Example:
from minecraftmonitoring import Client
client = Client('auth_token', user_agent='Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1')
Copyright:
This program is licensed under the MIT.
Copyright Notice:
MIT License
Copyright (c) 2023 Xpos587
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file minecraft-monitoring-api-0.1.2.tar.gz
.
File metadata
- Download URL: minecraft-monitoring-api-0.1.2.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ec0ecd8e09fc4e9be1e295992a220d1952dce33ca72c9b41c20adb5da396a97 |
|
MD5 | d99d3f640060f1e8f762ccc7be3211d1 |
|
BLAKE2b-256 | f34d089590307c44da46223caa46a597d523ac82d33cd43498b4711f1a721590 |