From cbc16bcd3819e516092dd7c678297777c09136dd Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sat, 20 May 2023 16:24:23 +0200 Subject: Paste: Mass YT download --- content/pages/pastebin.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'content') diff --git a/content/pages/pastebin.md b/content/pages/pastebin.md index fb6021b..675accc 100755 --- a/content/pages/pastebin.md +++ b/content/pages/pastebin.md @@ -7,6 +7,20 @@ draft: false *No additional explanation provided here. Use blog for more detailed stuff.* +**▒ Download list of YouTube files** + +```js +// 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. + +```sh +yt-dlp --batch-file videos.txt -N `nproc` -f webm +``` + **▒ Install Plan9port on Linux** ```sh -- cgit v1.2.3