Skip to content

Instantly share code, notes, and snippets.

View snipem's full-sized avatar

Matthias Küch snipem

  • Kassel, Germany
View GitHub Profile
@snipem
snipem / deezer_delete_playlists.sh
Created June 1, 2016 18:54
Lists all your Deezer playlists, put's them to a file for you to edit, deletes all the playlists listed in that file
access_token="ENTER_YOUR_DEEZER_ACCESS_CODE_HERE"
nr_to_fetch="1000"
#curl https://api.deezer.com/user/me?access_token=$access_token
curl "http://api.deezer.com/user/me/playlists?access_token=$access_token&limit=$nr_to_fetch&index=0" | jq '.data[] | "\(.title),\(.nb_tracks),\(.id)"' > all_playlists.txt
# NOW Edit all_playlists.txt and copy it to all_playlists_edited.txt
cat all_playlists_edited.txt | awk -F, '{print $3}'| sed "s/\"//g" |
while read line ; do