Skip to main content

A cli that may or may not download albums from a certain website

Project description

PyTubeMusic

A cli that may or may not download albums from a certain website.

PyTubeMusic is in alpha. Features are limited and significant API changes are expected

Install

pip install pytubemusic

Requires ffmpeg to be installed on your machine.

Usage

Album/Track data must be provided in toml form. e.g.:

# album_data.toml
url = "..."  # URL here

[metadata]
name = "Sonatas for Two Pianos"
album = "Sonatas for Two Pianos"
artist = "Claude Bolling"
genre = "Classical"
year = 1989
tracks = [
    { time = "00:00", name = "Sonata No.1 C Minor" },
    { time = "24:00", name = "Sonata No.2 G-Sharp Minor" },
]

The metadata.tracks field specifies the name of each track and when each track starts.

The cli can then be used to download the whole video as a single audio file, or as individual tracks:

  • pytubemusic album album_data.toml will download each track as a separate audio file.
  • pytubemusic track album_data.toml will download the video as a single audio file.

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

pytubemusic-0.0.1a1.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

pytubemusic-0.0.1a1-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

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