Today I Learned: 10/10/2021 - Getting a list of video names from a YouTube playlist
Publish date: 10 Oct 2021
To faciliate review of the videos from the 2021 PyConZA I needed to get a list of the video titles in the playlist but not actually download the videos. I found youtube-dl is able to do this with the –flat-playlist option. Combined with the -j option for JSON output and jq, a list of titles can be extracted like so:
youtube-dl --flat-playlist -j PLAYLIST_URL | jq .title