This script allows you to download the audio from a YouTube video and save it as an MP3 file.
- Python 3.6 or later
pytube
librarytqdm
library
- Clone the repository or download the script
download_audio.py
. - Install the required libraries using
pip install pytube tqdm
.
- Run the script using
python download_audio.py
. - Enter the URL of the YouTube video when prompted.
- Enter the destination folder to save the audio file (leave blank for current folder).
- The script will display a progress bar while downloading the audio file.
- Once the audio file is downloaded, it will be saved as an MP3 file in the destination folder with the same name as the YouTube video.
This project is licensed under the MIT License - see the LICENSE.md file for details.