Skip to main content

Simplifies the process of downloading and converting Youtube videos to MP3 files

Project description

YouTube to MP3

PyPi PyPI - Python Version License

Description

A program that simplifies the process of downloading and converting Youtube videos to MP3 files from the command-line. All you need is the video URL or the name of the artist/track you're looking for.
Once downloaded, the program will also embed the output file with the appropriate metadata and cover art via the iTunes API.

Install

You can download and install the app with the following commands:

# Clone the repository / most up to date is on saftyBranch
git clone https://github.com/tterb/yt2mp3

# Navigate to the directory
cd yt2mp3

# Install program dependencies
pip install -r requirements.txt

Usage

The program can executed via Python 3 as follows:

python yt2mp3.py [-options]

Once complete, the resulting MP3 file will be saved to your Downloads directory, with the following file-structure Music/{artist}/{track}.mp3.

Options:

Arguments
-t, --track Specify the track name query
-a, --artist Specify the artist name query
-u, --url Specify a Youtube URL or ID
-q, --quiet Suppress program command-line output
-p, --progress Display a command-line progress bar
-h, --help Displays information on usage and functionality

Note: Displaying the progress bar currently has a significant impact on download performance, due to #180.



Disclaimer

This program is distributed with the sole intent of being used on non-copyrighted material or copyrighted material for which the user holds the copyright. Use of this program outside of the aforementioned conditions is not permitted.

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

yt2mp3-1.0.2.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

yt2mp3-1.0.2-py3-none-any.whl (5.0 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