A simple and efficient command-line tool to download MP3 audio files from YouTube videos, playlists, and channels. This tool uses yt-dlp for downloading, ffmpeg for audio conversion, and tqdm for progress visualization. It supports downloading multiple videos concurrently with a clean and user-friendly interface.
- Download audio from single videos, playlists, or channels.
- Convert downloaded audio to MP3 format (192kbps).
- Optionally download video thumbnails and embed metadata.
- Multi-threaded downloading for faster processing.
- Customizable save location for downloaded files.
- Clear and stylish terminal interface with progress bars.
- Python 3.6+
yt-dlpffmpegtqdmcoloramapyfiglet
-
Clone the repository:
git clone https://github.com/your-username/youtube-mp3-downloader.git cd youtube-mp3-downloader -
Make sure you have
ffmpeginstalled and accessible in your system's PATH. -
Download and install
yt-dlp,colorama,pyfigletandtqdm:pip install yt-dlp colorama tqdm pyfiglet
-
Run the script:
python youtube_mp3_downloader.py
-
You will be prompted to input:
- The YouTube video, playlist, or channel URL.
- The directory name where the MP3 files should be saved (optional).
-
The program will fetch the video URLs and start downloading the MP3 files to the specified directory.
-
Once the download is complete, you'll see a message indicating success.
Video/Playlist/Channel URL: https://www.youtube.com/playlist?list=PLxKrR3VjggMv5oYFeOBtQzPimH8mMlhzI
Directory Name: My_Music- If downloading a playlist or channel, the program will download MP3s for all the videos in the list.
- Make sure that
ffmpeg.exeis installed and the path is correctly set in the script (FFMPEG_PATH).
This project is licensed under the MIT License - see the LICENSE file for details.