A Python script that exports all of your Deezer playlists.
First you need to create an app that will have access to your Deezer account.
- Go to your Deezer app page
- Click the button “Create a new Application”
- Fill in the form as follow shown below (Note: The name has no importance).
Once the Deezer application has been created you’ll be able to see your Application ID
and Secret key
(see below).
You’ll need to declare two environement variables to use the script:
APP_ID
: should have the same value as theApplication ID
(see image above)APP_SECRET
: should have the same value as theSecret Key
(see image above)
Example:
export APP_ID=277302
export APP_SECRET=290XXXXXXXXXXXXXXXXXXXXXXX
Once the previous operations has been completed you can run the script deezer-backup.py
python deezer-backup.py
A web page will pop up asking for permissions to access your user data on the behalf of your app.
Note: if you already have authorized your app the page will be blank. In both cases, wait until a pop up appears saying
that you can close the page. It might take a few minutes, be patient. Then go back to your console and quit the script (using CTRL+C
).
You can find the backup of your playlists in this directory under the folder playlists_<TIMESTAMP>.
Example:
playlists_1524517907.135343/
├── 0.json
├── 1.json
Here we have 2 playlists saved. One file per playlist.