From cd6644ea4ddc78597934ab0ef5ba50e3c3daa927 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sat, 8 Jul 2023 23:25:41 +0200 Subject: Moved to a simpler SSG --- public/download-youtube-videos.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 public/download-youtube-videos.html (limited to 'public/download-youtube-videos.html') diff --git a/public/download-youtube-videos.html b/public/download-youtube-videos.html new file mode 100755 index 0000000..2a9c1bf --- /dev/null +++ b/public/download-youtube-videos.html @@ -0,0 +1,17 @@ +Download list of YouTube files

Download list of YouTube files

May 13, 2023

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
+
\ No newline at end of file -- cgit v1.2.3