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.4.tar.gz
(5.4 kB
view details)
Built Distribution
File details
Details for the file pybalt-2024.10.4.tar.gz
.
File metadata
- Download URL: pybalt-2024.10.4.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dbe6534583450ddc0debddc6e1f7efdf17d46b9267a3184f467c69ee4221b7e |
|
MD5 | f4203e81760979becc56e29289d184a6 |
|
BLAKE2b-256 | b6aa9f280113a0faa4805004f4140c023b35a82c330d1292cbce5bbb07b1b62c |
File details
Details for the file pybalt-2024.10.4-py3-none-any.whl
.
File metadata
- Download URL: pybalt-2024.10.4-py3-none-any.whl
- Upload date:
- Size: 6.4 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 | 8e22e923d1e6b0b8623efd76f7175988deb83d2a286ac361b900880fddfb8bfd |
|
MD5 | deb59394bf4a4cb3922d6c3765150ab1 |
|
BLAKE2b-256 | 966e943a4efb219243a7de1381c00d636ce1dfd44ed82228fb3eed2a19bd76db |