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.3.tar.gz
(3.3 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.3.tar.gz.
File metadata
- Download URL: kobalt-0.1.3.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14b77d48266f461d779f039801bd842f0f35cee974cf9eda8954132a27e8c561
|
|
| MD5 |
39ba86216a973a8b3942c86af97e0066
|
|
| BLAKE2b-256 |
90599b0f0e9da15d1baadeaa5ca7f24d3bb40e9de10536f1ec08ba07a270662d
|
File details
Details for the file kobalt-0.1.3-py3-none-any.whl.
File metadata
- Download URL: kobalt-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.7 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 |
36ee14d79d01a40068c639104556c9267ecbf9b522d1db003cad8eedc3924981
|
|
| MD5 |
5a681a4ae0aeff5c0b396cf17872e57e
|
|
| BLAKE2b-256 |
1f193b4f936b753de6ecfb8bea3bfef500babfff04d6726f7570cd071cc74193
|