Since Google Takeout for YouTube doesn't export playlists you've saved, but only those you've created, I've written this script that will automatically export the list of saved playlists to a text file
How to use that:
- Open youtube.com/feed/library or youtube.com/feed/you
- At the bottom of the "Playlists" section, click the "Show more" button
- Scroll down the page to the bottom to ensure that all playlists are loaded and displayed
- Open JS console
- Paste and run the script
Also, you can export the contents of a specific playlist to a text file. To do this:
- Replace the first line of the script with the following:
var all_contents = document.querySelectorAll('div#contents > ytd-playlist-video-renderer > div#content > div#container > div#meta > h3 > a')
- Open playlist you want to export. Your likes for example: https://www.youtube.com/playlist?list=LL
- Scroll down the page to the bottom to ensure that all contents are loaded and displayed
- Open JS console
- Run the changed script