How to get a list of videos appearing in a youtube playlist?
June 19, 2020 7:47 PM Subscribe
If I have the url of a Youtube playlist, is there a simple way to get a list of video titles and urls that appear in the playlist? The playlist contains over 100 videos, so it's not something I want to do manually.
There's probably a way to achieve this with youtube-dl combined with some text parsing tools but the example in Poldo's answer isn't quite there yet, as it lists only the URLs but not the respective video titles.
Some UNIX guru will probably chime in soon with a tweak for that command line that dumps both title and URL.
posted by Bangaioh at 11:56 AM on June 20, 2020
Some UNIX guru will probably chime in soon with a tweak for that command line that dumps both title and URL.
posted by Bangaioh at 11:56 AM on June 20, 2020
The youtube-dl '-j' option prints out a JSON file with the titles for me. This command converts it to text with the id and title on alternating lines:
youtube-dl -j --flat-playlist "https://www.youtube.com/watch?list=PLpFrAlvpkPMu90fC_lLUuhtRyVPmc7N6z" | jq -r '.id','.title'
posted by Poldo at 7:52 PM on June 20, 2020 [1 favorite] This thread is closed to new comments.
http://www.williamsportwebdeveloper.com/FavBackUp.aspx
posted by NoneOfTheAbove at 9:06 PM on June 19, 2020 [2 favorites]