A Python program which uses Selenium browser automation to download multiple MP3s at once from entered YouTube links.
- Open the YT2MP3 directory in any IDE.
- You must have Google Chrome, Python 3 and pip installed.
- Install the required modules by running
pip install -r requirements.txt
on the Terminal. - Download the appropriate chromedriver according to your version of Chrome. You can check the version by entering
chrome://version/
into Chrome's search bar. Replace the pre-existing chromedriver with the new one. - Run
YT2MP3.py
.
Simply enter the URL of the video whose MP3 you'd like to download and click on "Add". The details of the video will then be displayed in the Console or an error will be thrown if the link is invalid.
Once you've entered all the URLs, click on "Download All". This will then create a folder called "Downloaded MP3s" in the YT2MP3 directory and save all the MP3s there.
Please note that the program will freeze after clicking "Download All" depending on how many MP3s are being downloaded. Do not try to download an MP3 that already exists in the folder as that tends to break the program.