yt-playlist-export is a tool that allows to export YouTube playlists, export YouTube "Watch later" list and export YouTube "Liked videos". It supports exporting to JSON and CSV formats.
python3 -m pip install yt-playlist-export
yt-playlist-export -h
usage: yt-playlist-export [-h] [--browser BROWSER] [-f {csv,json}] [-o OUTPUT] [-v] playlist [playlist ...]
yt-playlist-export exports YouTube playlists to JSON or CSV
positional arguments:
playlist playlist URL
optional arguments:
-h, --help show this help message and exit
--browser BROWSER browser where you logged in to YouTube
-f {csv,json}, --format {csv,json}
output's format
-o OUTPUT, --output OUTPUT
filename to store output, by default it's printed to stdout
-v, --verbose verbose
yt-playlist-export https://www.youtube.com/playlist\?list\=PL0XfG7TzasxNCl8a-SdyvSoazX1VYBweF -f csv -o test.csv
yt-playlist-export is using yt-dlp under the hood.
YouTube export playlist. YouTube export Watch later list. YouTube export liked videos. YouTube export playlist to CSV. YouTube export playlist to JSON. YouTube export private playlist.