Library for download Cobalt Api
Project description
Kobalt
Working with Cobalt API
Methods
| Method | Usage | Arguments (allowed values) |
|---|---|---|
CobaltApi |
Class constructor, initializes API URL, headers, and optional token | api_url: str = "https://co.itsv1eds.ru/", token: str = None |
quality |
Set the desired video quality | quality: str — only "max", "4320", "2160", "1440", "1080", "720", "480", "360", "240", "144" |
filename_pattern |
Set the filename style for downloads | pattern: str — only "classic", "pretty", "basic", "nerdy" |
vcodec |
Set the preferred video codec | codec: str — only "h264", "av1", "vp9" |
aformat |
Set the audio format | aformat: str — only "best", "mp3", "ogg", "wav", "opus" |
mode |
Set the download mode (audio only, muted video, or auto) | mode: str — only "audio", "mute", "auto" |
services |
Retrieve the list of supported services/platforms | — |
tunnel |
Get a direct download link for the file via the API | url: str |
download |
Download the file using the API and save it locally | url: str |
Example of use
from Kobalt import CobaltApi
cobalt = CobaltApi()
cobalt.filename_pattern("classic") # Not necessarily
result = cobalt.download("https://example.com/OOOOO/")
print(f"Downloaded! File Name: {result}")
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
kobalt-0.1.2.tar.gz
(3.4 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 kobalt-0.1.2.tar.gz.
File metadata
- Download URL: kobalt-0.1.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d998faa56ee24920a5a33737a0a01e8bb4f3b477d440857ddfcd5542eabd6f06
|
|
| MD5 |
a9d11bc92d2775a3110930ccf03b1bec
|
|
| BLAKE2b-256 |
ae0156589e36aab486ea8b739f9bb8ae1aabc6ba48585e698b30a3c78b4fce8e
|
File details
Details for the file kobalt-0.1.2-py3-none-any.whl.
File metadata
- Download URL: kobalt-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8859c2f50dd91f982824fbf6cf0f873805ffe6b77bdf182bb2f47af45f9cfe66
|
|
| MD5 |
7ae717430b6f72eb864943ee8e811bd0
|
|
| BLAKE2b-256 |
35f37b47f06b67907f2b3855e9d06799622ce74dbf71875c97eb6c1718d20bda
|