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

Other notes

DateTitle
#cat-v on weechat configuration
Parse RSS feeds with Lua
Sending signals to C programsc
Change permissions of matching files recursively
Take a screenshot in Plan9plan9
Grep to Less that maintain colors
Use option key as meta in Alacritty under macOS
Mount Plan9 over networkplan9
Development environments with Nix
Lua performance in different environments
Alacritty open links with modifier
Fix screen tearing on Debian 12 Xorg and i3
60's IBM Computers Commercial
Bulk thumbnails
Set color temperature of displays on i3