From 22f5ac8fcec4dbfcc1f5033f18bc4eeca52a747d Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Tue, 31 Oct 2023 08:20:22 +0100 Subject: Made the side more retro! --- public/download-youtube-videos.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'public/download-youtube-videos.html') diff --git a/public/download-youtube-videos.html b/public/download-youtube-videos.html index 1b84409..a6e3e07 100755 --- a/public/download-youtube-videos.html +++ b/public/download-youtube-videos.html @@ -1,15 +1,18 @@ -Download list of YouTube files

Download list of YouTube files

note, May 13, 2023 on Mitja Felicijan's blog

If you need to download a list of YouTube videos and don't want to download the actual YouTube list (which yt-dlp supports), you can use the following method.

// Used to get list of raw URL's from YouTube's video tab'.
 // Copy them into videos.txt.
 document.querySelectorAll('#contents a.ytd-thumbnail.style-scope.ytd-thumbnail').forEach(el => console.log(el.href))
 

Download and install https://github.com/yt-dlp/yt-dlp.

# This will download all videos in videos.txt.
 yt-dlp --batch-file videos.txt -N `nproc` -f webm
-

Posts from blogs I follow around the net