Created
May 2, 2015 06:58
-
-
Save raags/e32797e63619dc55f8fb to your computer and use it in GitHub Desktop.
Export Grooveshark Playlists
This file contains 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
var libraryKey = Object.keys(localStorage).filter(function(key) { return key.match(/library\d/) }); | |
var lib = JSON.parse(localStorage[libraryKey]).songs | |
var songs = [] | |
for (var i in lib) { | |
var song = lib[i] | |
songs.push(song.D + " - " + song.B + " - " + song.J) | |
} | |
songs.join("\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Open grooveshark.com and paste the above in the developer console to get a dump of songs from browser localstorage. Only works if you've loggedin to grooveshark recently.