Skip to main content

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


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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kobalt-0.1.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file kobalt-0.1.1.tar.gz.

File metadata

  • Download URL: kobalt-0.1.1.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

Hashes for kobalt-0.1.1.tar.gz
Algorithm Hash digest
SHA256 efa19679badbea7c13c0b4e0d79b9858cdb722faccd6e77c553c70be01ceaa5c
MD5 e1397a9407df46de2d962713b6cbe399
BLAKE2b-256 aef40aedbf91ffb7396918c84ec4e390a8a8351eade9dd922fa062bee801c018

See more details on using hashes here.

File details

Details for the file kobalt-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: kobalt-0.1.1-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

Hashes for kobalt-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c89eeba26a231113258fb787686cf030ba556a348c6e77b2d3d8d82d3b55c144
MD5 68936b62c7d21e246f60fa97b0141323
BLAKE2b-256 9c1244b80dde38c3e1972230107a8ad3a2f1d351f892cf3d6045c607f2253d9f

See more details on using hashes here.

Supported by

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