Every once in a while people need to download a youtube video for research purposes. Of course you should delete the video after downloading them for research purposes, unless they're youtube videos that you own.
There are plenty of websites out there that come up after a quick search, usually things that look like "youtubetomp3" and so on. There are better tools that exist. The best one that i've been using for years is
youtube-dl. The software is free and opensource. It's a command line utility that will download any public youtube video and optionally convert them to any media format, research purposes. You should delete the videos after testing the tool.
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
brew install youtube-dl
Download the exe from here : https://github.com/ytdl-org/youtube-dl
youtube-dl [OPTIONS] URL [INSERT_YOUTUBE_URL]
While the options available are in the hundreds, here are some of the most useful ones. Replace the url with the one you want to download before running the command.
youtube-dl -x --audio-format mp3 https://www.youtube.com/watch?v=6Dh-RL__uN4
youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' https://www.youtube.com/watch?v=6Dh-RL__uN4
hint: just use the playlist url instead of the video url.
youtube-dl -x --audio-format mp3 https://www.youtube.com/playlist?list=PLYH8WvNV1YEn_iiBMZiZ2aWugQfN1qVfM