Skip to content

Instantly share code, notes, and snippets.

@n1try n1try/deezer2json.js
Last active Mar 24, 2018

What would you like to do?
Export Deezer playlist to JSON
1. Go to and open the playlist you want to export, e.g.
2. Scroll down to the very bottom
3. Open your browser's dev tools (F12 on Linux an Windows) and go to the Console tab
4. Paste the following one-line command and hit enter
JSON.stringify('datagrid-row song')).map(r => Object.assign({}, {title: r.getElementsByClassName('title')[0].childNodes[0].textContent, artist:'[itemprop="byArtist"]')).map(a => a.textContent).reduce((acc, a) => a + ', ' + acc, '').slice(0, -2)})), null, 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.