Why Nostr? What is Njump?
2024-03-22 13:57:57

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
Author Public Key
npub1ym7ul30klun6nynw7de92sjpcu93qssffmrhfx4rqyy3udx302sqzgwlc3