Rezka API SDK
SDK for unofficial Rezka API. Details about API at Telegram.
Installation
You can install rezka_api_sdk using pip:
pip install rezka_api_sdk
Usage
from rezka_api_sdk import RezkaAPI, models
# Init API client
rezka_api = RezkaAPI("<your API key>")
# Get me, returns `models.UserModel`
await rezka_api.get_me()
# Search items, returns `list[SearchResultModel]`
await rezka_api.search("Top Gun: Maverick")
# Get short info about item and available translators, returns `tuple[ShortInfoModel, list[TranslatorInfoModel]]`
await rezka_api.get_info_and_translators("http://hdrezka1tqbbd.org/films/action/47946-top-gan-meverik-2022.html")
# Get direct urls
# NOTE: allowed to pass item's ID or URL
# Acceptable key arguments:
#
# translator_id: int; required;
# is_film: bool; required;
# translator_additional_arguments: dict; required; you can get it from `models.TranslatorInfoModel.additional_arguments`
# For films:
await rezka_api.get_direct_urls(
id = 47946,
translator_id = 56,
is_film = True,
translator_additional_arguments = {}
)
# For series:
await rezka_api.get_direct_urls(
id = 646, # Breaking bad
translator_id = 56,
is_film = False,
translator_additional_arguments = {},
season_id = "1",
episode_id = "1"
)
For user-friendly CLI example see cli_example.py.
Stay updated
For the latest news and updates, follow my Telegram Channel.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rezka_api_sdk-0.1.0.tar.gz
(3.5 kB
view details)
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 rezka_api_sdk-0.1.0.tar.gz.
File metadata
- Download URL: rezka_api_sdk-0.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/2.1.1 CPython/3.10.16 Linux/6.13.5-200.fc41.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef2144b6e6853b7fdfdf713de8530b87db644d5a0410bfaf8794abb26a5e1ab3
|
|
| MD5 |
ddc4d84c6be7b2968ea44e1805c04f0e
|
|
| BLAKE2b-256 |
bb30bf1ee899e51d77ad5ee7377ddf6e5bf8619a6ac3f8430d964160f1c54015
|
File details
Details for the file rezka_api_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rezka_api_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/2.1.1 CPython/3.10.16 Linux/6.13.5-200.fc41.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d388c1a57879dafddd565951f8e06d591886ce62ac625a250150655be29178eb
|
|
| MD5 |
d1726f1c0ba7da99a56616d72b80cc77
|
|
| BLAKE2b-256 |
66200ed17b2d1100f3770ad27f3840a3d3f27233e67e169e6fdf73968042c184
|