A simple YouTube downloader that converts videos to MP3 format using yt-dlp
and tkinter
for the GUI.
- Download audio from YouTube videos
- Convert to MP3 format
- User-friendly GUI
- Python 3
yt-dlp
librarytkinter
library (comes with Python standard library)
Windows:
- Download and install Python 3 from the official website.
- During installation, make sure to check the box that says "Add Python to PATH".
- To verify that Python is installed correctly, open a command prompt (
cmd
) and run the commandpython --version
. If Python is installed, the Python version will be displayed.
MacOS:
-
Open a terminal and install Homebrew (if not already installed):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
Install Python 3:
brew install python@3
-
To verify that Python is installed correctly, run the command
python3 --version
in a terminal. If Python is installed, the Python version will be displayed.
Linux:
-
Install Python 3 using your distribution's package manager. For example, on Debian or Ubuntu:
sudo apt-get update sudo apt-get install python3
-
To verify that Python is installed correctly, run the command
python3 --version
in a terminal. If Python is installed, the Python version will be displayed.
-
Install the
yt-dlp
andtkinter
libraries by running the following commands in a terminal or command prompt:pip install yt-dlp
Since the
tkinter
library is part of Python, you do not need to install it separately.
-
Clone the repository:
git clone https://github.com/Teknowm3/YoutubeToMp3.git cd YoutubeToMp3
-
Install the required libraries:
pip install yt-dlp
-
Run the application:
python YoutubeToMp3.py
-
Enter the YouTube URL in the input field.
-
Click the "Download and Convert" button.
This project is licensed under the MIT License - see the LICENSE file for details.