niconiconi on Nostr: Note to self: how to grep YouTube videos. # download channel metadata yt-dlp ...
Note to self: how to grep YouTube videos.
# download channel metadata
yt-dlp 'https://www.youtube.com/@example'; --dump-single-json --skip-download --flat-playlist > example-channel.json
# for each element in array "entries", print(title + "\t" + url)
jq -r '.entries[].title + "\t" + .entries[].url' example-channel.json | grep keyword
# download channel metadata
yt-dlp 'https://www.youtube.com/@example'; --dump-single-json --skip-download --flat-playlist > example-channel.json
# for each element in array "entries", print(title + "\t" + url)
jq -r '.entries[].title + "\t" + .entries[].url' example-channel.json | grep keyword