Skip to content

Instantly share code, notes, and snippets.

@raags
Created May 2, 2015 06:58
Show Gist options
  • Save raags/e32797e63619dc55f8fb to your computer and use it in GitHub Desktop.
Save raags/e32797e63619dc55f8fb to your computer and use it in GitHub Desktop.
Export Grooveshark Playlists
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")
@raags
Copy link
Author

raags commented May 2, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment