Is it possible to download a playlist of videos from YouTube?
I often watch playlists of short educational videos from YouTube. Rather than sitting bolt-upright at my desk to watch them on my desktop computer, I prefer to copy them to a pen-drive, plug the pen-drive into the back of my TV and watch them couch-potato style on my sofa. After watching a batch I delete them.
An example is these playlists by numericalmethodsguy: https://www.youtube.com/@numericalmethodsguy/playlists 1) Is it possible to download all or some of the videos in a playlist automatically? 2) Preferably I would like to prefix them with "001 ", "002 ", "003 ", .... so that they play in the right order. 3) As some playlists can be very long - for example those by "Professor Dave" - I would prefer to be able to download only part of the playlist, otherwise the computer could be busy all day. Another example of good maths playlists are those by "Professor Leonard", although his videos are much longer, sometimes over three hours. Thanks. Professor Dave Explains playlists https://www.youtube.com/@ProfessorDa...ains/playlists Professor Leonard playlists https://www.youtube.com/@ProfessorLeonard/playlists |
I guess youtube downloader can do that. http://ytdl-org.github.io/youtube-dl/
|
Quote:
Three of the over 53 million hits: https://stackoverflow.com/questions/...ist-youtube-dl https://www.makeuseof.com/download-y...inux-terminal/ https://www.xmodulo.com/how-to-downl...-in-linux.html |
Quote:
Code:
man -P cat yt-dlp > yt-dp_man.txt Quote:
Code:
num=1 Quote:
Example, first 5: Code:
yt-dlp ytsearch5:numericalmethodsguy \ |
Thanks Teckk and others. I tried pasting in the last code given in my terminal and got this:
Code:
~$ yt-dlp ytsearch5:numericalmethodsguy \ When I pasted in the first two lines of code, I got - Code:
~$ man -P cat yt-dlp > yt-dp_man.txt |
apt install python3-brotli
probably helps |
Quote:
And the error you posted was for python-brotli...and it said it couldn't be found. Would seem to make sense to look for/install that, since the program you were trying to run said it needed it. |
yt-dlp has about the same syntax as youtube-dl. Either one that you use, look at the man page.
Code:
man youtube-dl https://man.archlinux.org/man/yt-dlp.1 @grumpyskeptic Did you get a yt-dp_man.txt in that directory to read? That simply gives you a text file copy of a man page. Maybe a little easier to read. When you get yt-dlp working correctly, or youtube-dl: Code:
yt-dlp ytsearch5:numericalmethodsguy \ |
And since I know that you are going to have problems...
Here, this will get you started. Code:
yt-dlp ytsearch50:ProfessorDaveExplains \ |
Code:
yt-dlp ytsearch50:ProfessorLeonard \ |
And if you are interested in Science. Do a search for Prof. Brian Greene on utube. (Theoretical physicist) Also World Science Festival
|
I have yet to figure out how to download playlists, such as the 650-item playlist ( https://www.youtube.com/playlist?lis...MdCiYXyg4ymxrK ) at
TLMaths https://www.youtube.com/@TLMaths TLMaths is very good in working through a lot of examples, and you can check your understanding by anticipating the calculations step by step in your head or on paper to see if you get the same result. Others I also like - Eddie Woo https://www.youtube.com/@misterwootube NancyPi https://www.youtube.com/@NancyPi The above are better for learning than those videos with award-winning animated computer graphics and background music, or too much ego, which distract. |
Quote:
I don't have youtube-dl installed, I do have yt-dlp installed. First 5. Code:
yt-dlp ytsearch5:TLMaths --flat-playlist --print "" --print title --print urls Code:
yt-dlp ytsearch5:misterwootube --flat-playlist --print "" --print title --print urls Example: Code:
array=( Code:
yt-dlp -f 18 --download-archive videos.txt <url> -o '%(channel_id)s/%(playlist_id)s/%(id)s.%(ext)s' |
Quote:
What you want to download and why is immaterial; things were looked up for you and given to you, with EXACT COMMANDS to do what you're after. Did you try the youtube-dl command??? The one that specifically has this command: Code:
youtube-dl --ignore-errors --format bestaudio --extract-audio --audio-format mp3 --audio-quality 160K --output "%(title)s.%(ext)s" --yes-playlist 'https://www.youtube.com/playlist?list={your-youtube-playlist-id}' Code:
https://www.youtube.com/watch?v=0JCKfnMXN7Q&list=PLg2tfDG3Ww4v_SFDksHfwV05Imsf8fAnU&ab_channel=TLMaths If you want to download ALL of their playlists, then create a small script that will read a file of the different URL's to each playlist and run it. Or write your own piece of software to scrape all the URL's from a playlist-page on YouTube. |
Quote:
|
All times are GMT -5. The time now is 08:43 PM. |