/download_youtube_mp3

download_youtube_mp3

Primary LanguagePython

download youtube as mp3

Info

Before running the script, make sure you have both youtube-dl and ffmpeg installed on your system:

Install youtube-dl: https://github.com/ytdl-org/youtube-dl#installation Install ffmpeg: https://ffmpeg.org/download.html

Replace <youtube_url> with the URL of the YouTube video you want to download and <output_directory> with the directory where you want to save the MP3 file. The script will download the video, convert it to MP3 format, and save it to the specified directory.

Please note that downloading copyrighted content from YouTube is against their Terms of Service. Only use this script to download videos that are in the public domain or that you have permission to download.

Usage

python download_youtube_mp3.py <youtube_url> <output_directory>