Python API Client for https://zelenka.guru & https://lzt.market & https://antipublic.one
Project description
🚀 Installation
Install the package using pip:
pip install LOLZTEAM
Also you can download the package from here and install it manually.
pip install LOLZTEAM-<version>.tar.gz or pip install LOLZTEAM-<version>.whl
💻 Usage
Import the required modules and initialize the API clients:
from LOLZTEAM.Client import Forum, Market, Antipublic
from LOLZTEAM.Client.Base import Constants
import asyncio
token = "your_token"
forum = Forum(token=token)
market = Market(token=token)
antipublic = Antipublic(token="Antipublic_key")
# API Client Parameters
# - **token** (str): Your token.
# - **language** (str["ru", "en"]): Language of the API responses.
# - **delay_min** (float): Minimal delay between requests.
# - **proxy** (str): Proxy string.
# > protocol://ip:port or protocol://login:password@ip:port (socks5://login:password@192.168.1.1:8080 or http://login:password@192.168.1.1:8080)
# - **timeout** (float): Request timeout.
# All following examples also work for Market & Antipublic clients
forum.settings.logger.enable() # 📝 Start logging
# Forum & Market client will log into {user_id}.{Client_name}.log file
# Antipublic client will log into Antipublic.log file
forum.settings.delay.enable() # 🕒 Enable auto delay (Auto delay is enabled by default for Market & Forum but not for Antipublic)
response = forum.users.get(user_id=2410024) # ⚡ Sync request
job = forum.users.get.job(user_id=2410024) # 📋 Job creation (Always SYNC)
response = forum.request("GET", "/users/2410024") # ⚡ Custom request (You can use full url or just path)
job = forum.request.job("GET", "/users/2410024") # 📋 Job creation for custom request
async def async_example():
response = await forum.users.get(user_id=2410024) # ⚡ Async request
job = forum.users.get.job(user_id=2410024) # 📋 Job creation (Always SYNC)
response = await forum.request("GET", "/users/2410024") # ⚡ Custom async request
job = forum.request.job("GET", "/users/2410024") # 📋 Job creation for custom request
asyncio.run(async_example())
# You should just add ".job" between function name and parentheses to create a job.
# You can't create a job for methods that are uploading files (like avatar/background) and ofc not for client.batch(...) method.
# P.s Your IDE probably may not show that ".job" function exists but it does, trust me.
forum.settings.token = "token" # 🔑 Change token
forum.settings.language = "en" # 🌍 Change language (Antipublic client doesn't support language changing)
forum.settings.proxy = "http://login:password@192.168.1.1:8080" # 🌐 Change proxy
forum.settings.delay.min = 3 # 🕒 Set minimal delay (E.g. your minimal delay is 3 seconds, but if a method you want to use has a
# delay of 0.5 seconds, your script will sleep for 3 seconds instead of 0.5 seconds)
forum.settings.delay.disable() # 🕒 Disable auto delay
forum.settings.logger.disable() # 📝 Stop logging
# You can view all changeable settings in LOLZTEAM/Client/Base/Core.py file
📚 Documentation
Package Documentation:
Official API Documentation:
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lolzteam-2.0.10.tar.gz.
File metadata
- Download URL: lolzteam-2.0.10.tar.gz
- Upload date:
- Size: 37.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.12.9 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ec104cd8331fcf8004b601fb640cc814cc05d9901179ed0e3e59d442ea8ff33
|
|
| MD5 |
9f03628ae91e90f2d52b8b3ced7909c9
|
|
| BLAKE2b-256 |
53d8e28da2ad9dee385c067b85cc9d838cad15ba1957214a7c1a28bd39c0efd3
|
File details
Details for the file lolzteam-2.0.10-py3-none-any.whl.
File metadata
- Download URL: lolzteam-2.0.10-py3-none-any.whl
- Upload date:
- Size: 40.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.12.9 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fe9e84bb79ada6e8b088dec290de727926095fa4137df33e41f20f58eafc920
|
|
| MD5 |
4b891959e50e03d895d7a3102bb65788
|
|
| BLAKE2b-256 |
e14360ad3bdd3102ff148abd0b492878f742f3b26ce8667572c93a122ba398ce
|