Skip to main content

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 ^^

Get on pypi Last commit Pip module installs total downloads GitHub stars


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

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:

pybalt -pl 'playlistUrl' -folder cat-videos -q 4k -i https://dwnld.nichind.dev -k API_KEY

Project details


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.5.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

pybalt-2024.10.5-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file pybalt-2024.10.5.tar.gz.

File metadata

  • Download URL: pybalt-2024.10.5.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pybalt-2024.10.5.tar.gz
Algorithm Hash digest
SHA256 ab49e61ea50a14cb04c2072b7bf65ad4fac686c7a7d9819eb481f3964c5207e8
MD5 84329df9993ff7d9233ae91b31014b5c
BLAKE2b-256 46f3eb5fff2ff8cbefab776949854308ad4771b5c79116f8ff4178871d4fb296

See more details on using hashes here.

File details

Details for the file pybalt-2024.10.5-py3-none-any.whl.

File metadata

  • Download URL: pybalt-2024.10.5-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pybalt-2024.10.5-py3-none-any.whl
Algorithm Hash digest
SHA256 41e8de06cbf8657fa5e908b1b0a64e8453b988e7d04cd4f495a7bd1993a1cb96
MD5 a9f5fa8824cadbe2220a2d3ebd1624d8
BLAKE2b-256 05c8933d3f41b12022b7bb845200acd29e909ddef3d3403f4a49e9157423c991

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page