Last active
September 20, 2021 11:35
-
-
Save yoogottamk/a1d50ea673b2e9d60e474ad34d379330 to your computer and use it in GitHub Desktop.
YT Music Liked Playlist to CSV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
1. open https://music.youtube.com/playlist?list=LM | |
2. open console | |
3. copy paste | |
*/ | |
$$("ytmusic-responsive-list-item-renderer yt-formatted-string").reduce((songList, songPart, i) => { | |
((i + 1) % 4) ? songList[songList.length - 1] += songPart.textContent + "," : songList.push(""); | |
return songList; | |
}, [""]).map(x => x.slice(0, -1)).join("\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment