New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

yt2mp3

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yt2mp3

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

  • 1.2.4
  • PyPI
  • Socket score

Maintainers
1

YouTube to MP3

Build Status Documentation Status PyPi Version PyPI Python Versions License


Description

This program simplifies the process of searching, 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.
The program will attempt to retrieve data for a song matching the provided input by querying the iTunes API and use the data to find a corresponding YouTube video, if a URL is not provided. The video will then be downloaded, converted, and the gathered data will be used to populate the metadata of the MP3.
Once finished, the resulting MP3 file will be saved to your Downloads directory, with the following file-structure Music/{artist}/{track}.mp3.

Note: If a URL is provided and no match is found for the song data, the program will prompt the user for the track/artist and the YouTube thumbnail will be used as the album artwork.

Getting Started

Prerequisites

The program only requires that you have Python 3.4+ and ffmpeg or libav installed. For more information, check out the additional setup.

Install

You can install the program with the following command:

$ pip install yt2mp3

Usage

The program can be executed via the as follows:

$ yt2mp3 [-options]
Options:
Arguments
-t, --trackSpecify the track name query
-a, --artistSpecify the artist name query
-c, --collectionSpecify the album name query
-u, --urlSpecify a Youtube URL or ID
-p, --playlistSpecify a Youtube playlist URL or ID
-o, --overwriteOverwrite the file if one exists in output directory
-r, --resolutionSpecify the resolution for the cover-art
-q, --quietSuppress program command-line output
-v, --verboseDisplay a command-line progress bar
--versionShow the version number and exit
-h, --helpDisplay information on usage and functionality

Documentation

Further documentation is available on Read The Docs

Contributing

If you'd like to contribute to the project, feel free to suggest a feature request and/or submit a pull request.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc