No project description provided
Project description
Pybalt
Python module / CLI to download media using cobalt-api instance
ATM instance default to my own instance, please dont abuse it ^^
Installation
Download using PIP
python -m pip install pybalt
Usage & Examples
Inside python file
from pybalt import Cobalt
from asyncio import run
async def main():
cobalt = Cobalt(api_key='...', api_instance='https://...')
print(await cobalt.download("https://www.youtube.com/watch?v=9bZkp7q19f0", quality="1080", path_folder='cute-videos'))
if __name__ == "__main__":
run(main())
With terminal or cmd
python -m pybalt -url 'https://music.youtube.com/watch?v=cxAmzz_tjzc' -folder music -fs pretty
Cli Options:
-h, --help show this help message and exit
-url URL, -u URL URL to download
-list LIST, -l LIST Path to file with list of URLs
-quality QUALITY, -q QUALITY, -res QUALITY, -r QUALITY
Video quality to try download
-folder FOLDER, -f FOLDER
Path to folder
-instance INSTANCE, -i INSTANCE
Cobalt API instance
-key KEY, -k KEY API key
-playlist PLAYLIST, -pl PLAYLIST
Playlist URL (currently YouTube only)
-filenameStyle FILENAMESTYLE, -fs FILENAMESTYLE
Filename style
-audioFormat AUDIOFORMAT, -af AUDIOFORMAT
Audio format
Lets say we want to download YouTube playlist in 4k using my instance with api_key, save all videos to folder 'cat-videos', command would look like that:
python -m pybalt -pl 'playlistUrl' -folder cat-videos -q 4k -i https://dwnld.nichind.dev -k API_KEY
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
pybalt-2024.10.1.tar.gz
(5.2 kB
view details)
Built Distribution
File details
Details for the file pybalt-2024.10.1.tar.gz
.
File metadata
- Download URL: pybalt-2024.10.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d9cbbd3ec9ac4aff2737dcb3bc4b0d2b7f0c127451b541447780aed2030e1e6 |
|
MD5 | 1cb6e724ad959ee034221e56716376f5 |
|
BLAKE2b-256 | cd971946b15a0c09a2fddea3c35f6205b653c8c59269a9d64f7e95fdd3697cbd |
File details
Details for the file pybalt-2024.10.1-py3-none-any.whl
.
File metadata
- Download URL: pybalt-2024.10.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dca9ba536bb771b6ab764f6e87c2b60982efd5ee3c0ded9f08151fe623de0ef |
|
MD5 | e00c910b215c3d9cd22061a9254d4d24 |
|
BLAKE2b-256 | 8f8dc260f0974949cc7c7e6c71dd98af5a82580722b2940e29f3563b9388868b |