Skip to main content

A commandline utility that enables the creation of albums from Youtube playlists.

Project description

ytam - YouTube Album Maker

A commandline utility that enables the creation of albums from Youtube playlists.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Installing

ytam depends on a specific patch of pytube, which is not yet incorporated into its official release. Until this happens, first install the patch using:

pip install git+git://github.com/nficano/pytube.git@0f32241c89192b22de9cfbfee1303a1bcee18bd3

Then:

pip install ytam

Usage:

ytam [-h] [-t TITLES] [-d DIRECTORY] [-s START] [-e END] [-A ALBUM]
               [-a ARTIST] [-i IMAGE]
               URL

positional arguments:
  URL                   the target URL of the playlist to download

optional arguments:
  -h, --help            show this help message and exit
  -t TITLES, --titles TITLES
                        a plain text file containing the desired names of the
                        songs in the playlist (each on a new line)
  -d DIRECTORY, --directory DIRECTORY
                        the download directory (defaults to 'music' - a
                        subdirectory of the current directory)
  -s START, --start START
                        from which position in the playlist to start
                        downloading
  -e END, --end END     position in the playlist of the last song to be
                        downloaded
  -A ALBUM, --album ALBUM
                        the name of the album that the songs in the playlist
                        belongs to (defaults to playlist title)
  -a ARTIST, --artist ARTIST
                        the name of the artist that performed the songs in the
                        playlist (defaults to Unknown)
  -i IMAGE, --image IMAGE
                        the path to the image to be used as the album cover
                        (defaults to using the thumbnail of the first video in
                        the playlist). Only works when -A flag is set 

Tests

TODO

Built With

  • pytube - Lightweight Python library for downloading videos
  • mutagen - For MP4 metadata tagging
  • argparse - For parsing commandline arguments

Authors

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

ytam-0.0.22.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

ytam-0.0.22-py3-none-any.whl (9.6 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