Created
April 18, 2013 18:30
-
-
Save 8bitDesigner/5415085 to your computer and use it in GitHub Desktop.
Export your Turntable.fm playlist as JSON, via very hacky script.
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 playlist = $('.songs .song').toArray().map(function(song) { | |
var song = $(song) | |
, deets = song.find('.details').text().split(' • ') | |
, image = $(song).find('.thumb').attr('style') | |
return { | |
title: song.find('.title').text(), | |
artist: deets.shift(), | |
length: deets.shift(), | |
cover: image ? /\((.*)\)/.exec(image).pop() : null | |
} | |
}) | |
console.log(JSON.stringify(playlist, null, 2)) | |
copy(JSON.stringify(playlist, null, 2)) |
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
[ | |
{ | |
"title": "Ghost Ship", | |
"artist": "Bonobo", | |
"length": "4:01", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/015/766/0001576656_200.jpg" | |
}, | |
{ | |
"title": "Pogo", | |
"artist": "Digitalism", | |
"length": "3:47", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/000/864/0000086497_200.jpg" | |
}, | |
{ | |
"title": "The Matter (Of Our Discussion)", | |
"artist": "Boom Bip", | |
"length": "3:49", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/016/271/0001627166_200.jpg" | |
}, | |
{ | |
"title": "The Legend Of Zelda", | |
"artist": "Zedd", | |
"length": "6:11", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/012/689/0001268994_200.jpg" | |
}, | |
{ | |
"title": "Comatose Luck", | |
"artist": "Xploding Plastix", | |
"length": "3:40", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/007/124/0000712430_200.jpg" | |
}, | |
{ | |
"title": "Now We've Made Our Ascent", | |
"artist": "The Reign Of Kindo", | |
"length": "3:18", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/009/310/0000931028_200.jpg" | |
}, | |
{ | |
"title": "Everything in Its Right Place", | |
"artist": "Radiohead", | |
"length": "4:11", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/002/577/0000257712_200.jpg" | |
}, | |
{ | |
"title": "The Sadder But Wiser Girl", | |
"artist": "Seth MacFarlane", | |
"length": "2:56", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/019/368/0001936880_200.jpg" | |
}, | |
{ | |
"title": "Koop Island Blues (Album Version)", | |
"artist": "Koop", | |
"length": "4:33", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/006/600/0000660090_200.jpg" | |
}, | |
{ | |
"title": "Alone in kyoto", | |
"artist": "Air", | |
"length": "4:51", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/000/454/0000045458_200.jpg" | |
}, | |
{ | |
"title": "My Favourite Game", | |
"artist": "The Cardigans", | |
"length": "3:40", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/019/293/0001929350_200.jpg" | |
}, | |
{ | |
"title": "Fuck The Pain Away", | |
"artist": "Peaches", | |
"length": "4:10", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/000/757/0000075723_200.jpg" | |
}, | |
{ | |
"title": "Shame Of The Otaku", | |
"artist": "MC Frontalot", | |
"length": "3:49", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/013/749/0001374975_200.jpg" | |
}, | |
{ | |
"title": "Artsy Remix", | |
"artist": "edIT feat. The Grouch", | |
"length": "5:03", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/017/431/0001743124_200.jpg" | |
}, | |
{ | |
"title": "Get Better John", | |
"artist": "Mux Mool", | |
"length": "3:35", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/007/544/0000754467_200.jpg" | |
}, | |
{ | |
"title": "Stairway to Heaven", | |
"artist": "Rodrigo y Gabriela", | |
"length": "4:44", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/016/290/0001629085_200.jpg" | |
}, | |
{ | |
"title": "Smell Memory (Bix Remix) ", | |
"artist": "Múm", | |
"length": "5:15", | |
"cover": null | |
}, | |
{ | |
"title": "Grounds For Divorce", | |
"artist": "Elbow", | |
"length": "3:39", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/019/389/0001938905_200.jpg" | |
}, | |
{ | |
"title": "The Bad In Each Other", | |
"artist": "Feist", | |
"length": "4:45", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/014/074/0001407416_200.jpg" | |
}, | |
{ | |
"title": "M4 (Part II)", | |
"artist": "Faunts", | |
"length": "8:18", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/002/234/0000223480_200.jpg" | |
}, | |
{ | |
"title": "At The End Of The Day", | |
"artist": "Amon Tobin", | |
"length": "3:12", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/010/636/0001063671_200.jpg" | |
}, | |
{ | |
"title": "6 Underground (Perfecto Mix)", | |
"artist": "Sneaker Pimps", | |
"length": "6:07", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/003/116/0000311650_200.jpg" | |
}, | |
{ | |
"title": "Mind Killer", | |
"artist": "Freeland", | |
"length": "3:28", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/005/934/0000593484_200.jpg" | |
}, | |
{ | |
"title": "2 Hearts", | |
"artist": "Digitalism", | |
"length": "3:56", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/018/674/0001867493_200.jpg" | |
}, | |
{ | |
"title": "All For U", | |
"artist": "RJD2", | |
"length": "3:28", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/001/033/0000103323_200.jpg" | |
}, | |
{ | |
"title": "Easy Muffin", | |
"artist": "Amon Tobin", | |
"length": "4:31", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/010/637/0001063750_200.jpg" | |
}, | |
{ | |
"title": "Sports,Not Heavy Crime", | |
"artist": "Xploding Plastix", | |
"length": "5:07", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/007/124/0000712430_200.jpg" | |
}, | |
{ | |
"title": "Poor Leno (Istanbul Forever Take)", | |
"artist": "Röyksopp", | |
"length": "5:31", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/000/540/0000054060_200.jpg" | |
}, | |
{ | |
"title": "Forces... Darling", | |
"artist": "Koop", | |
"length": "5:02", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/006/600/0000660090_200.jpg" | |
}, | |
{ | |
"title": "Lion Hat", | |
"artist": "Unicorn Kid", | |
"length": "4:16", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/008/108/0000810892_200.jpg" | |
}, | |
{ | |
"title": "Love's Not A Competition (But I'm Winning)", | |
"artist": "Kaiser Chiefs", | |
"length": "3:16", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/019/296/0001929644_200.jpg" | |
}, | |
{ | |
"title": "Erase / Rewind", | |
"artist": "The Cardigans", | |
"length": "3:38", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/019/293/0001929350_200.jpg" | |
}, | |
{ | |
"title": "The Bones Of You", | |
"artist": "Elbow", | |
"length": "4:49", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/019/389/0001938905_200.jpg" | |
}, | |
{ | |
"title": "I Need Some Fine Wine And You, You Need To Be Nicer", | |
"artist": "The Cardigans", | |
"length": "3:33", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/009/961/0000996152_200.jpg" | |
}, | |
{ | |
"title": "Remind me (someone else's radio remix)", | |
"artist": "Röyksopp", | |
"length": "4:03", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/000/194/0000019479_200.jpg" | |
}, | |
{ | |
"title": "Psyche", | |
"artist": "Massive Attack", | |
"length": "3:21", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/007/104/0000710423_200.jpg" | |
}, | |
{ | |
"title": "Black (feat. Norah Jones)", | |
"artist": "Danger Mouse & Daniele Luppi", | |
"length": "3:32", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/012/400/0001240011_200.jpg" | |
}, | |
{ | |
"title": "Sound Of The Ghost", | |
"artist": "Clutchy Hopkins", | |
"length": "3:04", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/015/569/0001556943_200.jpg" | |
}, | |
{ | |
"title": "Twilight Stolen", | |
"artist": "Module", | |
"length": "6:02", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/012/469/0001246919_200.jpg" | |
}, | |
{ | |
"title": "Seven Nation Army (The Glitch Mob Remix)", | |
"artist": "White Stripes", | |
"length": "4:17", | |
"cover": null | |
}, | |
{ | |
"title": "Kong", | |
"artist": "Bonobo", | |
"length": "3:57", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/010/590/0001059034_200.jpg" | |
}, | |
{ | |
"title": "Kinetik", | |
"artist": "Phutureprimitive", | |
"length": "5:30", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/015/279/0001527999_200.jpg" | |
}, | |
{ | |
"title": "Firestarter (Alvin Risk Remix)", | |
"artist": "The Prodigy", | |
"length": "3:18", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/020/163/0002016389_200.jpg" | |
}, | |
{ | |
"title": "Catch You", | |
"artist": "Kill Paris", | |
"length": "3:34", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/022/049/0002204955_200.jpg" | |
}, | |
{ | |
"title": "Forrest Gump", | |
"artist": "Digitalism", | |
"length": "3:33", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/018/937/0001893794_200.jpg" | |
}, | |
{ | |
"title": "Miami Showdown", | |
"artist": "Digitalism", | |
"length": "3:26", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/018/937/0001893794_200.jpg" | |
}, | |
{ | |
"title": "The Lighthouse (King Cannibal Remix)", | |
"artist": "Amon Tobin", | |
"length": "6:15", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/011/695/0001169512_200.jpg" | |
}, | |
{ | |
"title": "Verbal (Boom Bip Remix)", | |
"artist": "Amon Tobin", | |
"length": "5:11", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/010/652/0001065227_200.jpg" | |
}, | |
{ | |
"title": "Esther's", | |
"artist": "Amon Tobin", | |
"length": "3:20", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/010/654/0001065424_200.jpg" | |
}, | |
{ | |
"title": "Breathe (The Glitch Mob Remix)", | |
"artist": "The Prodigy", | |
"length": "4:25", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/020/163/0002016389_200.jpg" | |
}, | |
{ | |
"title": "Tongue-Clucking Grammarian", | |
"artist": "MC Frontalot", | |
"length": "3:02", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/013/749/0001374975_200.jpg" | |
}, | |
{ | |
"title": "Smack My Bitch Up", | |
"artist": "The Prodigy", | |
"length": "5:04", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/012/453/0001245372_200.jpg" | |
}, | |
{ | |
"title": "Slowly & Silently", | |
"artist": "Module", | |
"length": "6:19", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/008/795/0000879580_200.jpg" | |
}, | |
{ | |
"title": "TiK ToK", | |
"artist": "Ke$ha", | |
"length": "3:20", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/006/847/0000684746_200.jpg" | |
}, | |
{ | |
"title": "Kiara (Cosmin TRG Remix)", | |
"artist": "Bonobo", | |
"length": "5:05", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/015/766/0001576656_200.jpg" | |
}, | |
{ | |
"title": "I Want That", | |
"artist": "Psapp", | |
"length": "3:51", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/006/456/0000645673_200.jpg" | |
}, | |
{ | |
"title": "Origin Of Species", | |
"artist": "MC Frontalot", | |
"length": "4:01", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/013/749/0001374971_200.jpg" | |
}, | |
{ | |
"title": "Needle And Thread", | |
"artist": "Psapp", | |
"length": "4:19", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/006/456/0000645660_200.jpg" | |
}, | |
{ | |
"title": "Between Two Points (feat. Swan)", | |
"artist": "The Glitch Mob", | |
"length": "5:35", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/007/812/0000781216_200.jpg" | |
}, | |
{ | |
"title": "Dinosaur", | |
"artist": "Ke$ha", | |
"length": "2:55", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/006/847/0000684746_200.jpg" | |
}, | |
{ | |
"title": "Fickle Ghost", | |
"artist": "Psapp", | |
"length": "2:46", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/006/456/0000645673_200.jpg" | |
}, | |
{ | |
"title": "Warrior Concerto", | |
"artist": "The Glitch Mob", | |
"length": "3:39", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/013/130/0001313039_200.jpg" | |
}, | |
{ | |
"title": "Good Times Roll Pt. 2", | |
"artist": "RJD2", | |
"length": "4:57", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/010/996/0001099607_200.jpg" | |
}, | |
{ | |
"title": "Bloodstone", | |
"artist": "Amon Tobin", | |
"length": "4:10", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/010/654/0001065424_200.jpg" | |
}, | |
{ | |
"title": "Cryogenic Dreams", | |
"artist": "Phutureprimitive", | |
"length": "6:24", | |
"cover": "http://cdn.7static.com/static/img/sleeveart/00/015/279/0001527999_200.jpg" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment