This is a simple Python program that allows you to download YouTube videos as MP3 files. It provides a graphical user interface where you can enter one or more YouTube URLs, and it will download those videos and convert them to MP3 format.
- Run the
ytdl.py
script. This will open a GUI. - Paste one or more YouTube URLs into the text box. If you're entering multiple URLs, make sure to put each URL on a new line.
- Click the "Download as MP3" button.
- Select a directory where the MP3 files should be saved.
- The program will download each video and convert it to MP3 format. If a download fails for any reason, an error message will be displayed.
To run this program, you need Python 3 and the following Python libraries:
- tkinter
- yt_dlp
You can install these libraries using pip:
pip install -r requirements.txt