In conclusion, I recommend for backing up all playlists in a file, mostly because it's less effort than spotify-backup.py. Go to File > Library > Export Library and then save it to xml file. But since spotify-backup.py is just 160 lines of open source code, it seems very unlikely that it would contain malicious code, b/c everyone can check it and report it to the GitHub administration. Make sure you have Apple Music enabled and are logged in correctly to your account.
However, even though this app can help you export your Spotify playlist you can always use a better method. Choose the playlist you want to export and right-click it. Firstly, ensure that you have iTunes installed on your computer and that you are logged into your Apple Music account. Note that principally downloading and running a script (or other executable program) outside the browser poses a much bigger security risk (depending on your trust in the source) than applications that run within the browser. On the Playlists category click on the Playlist tab. Convert playlists and favorites between different music platforms. Then the Spotify music files will be imported into your iTunes library in seconds.
Locate the converted Spotify songs or folder, and click Open. (I stumbled over spotify-backup.py while googling. Open iTunes and click the menu bar > Files then select Add File to Library or Add Folder to Library. JSON dump of all the playlists both spotify-backup.py and SpotMyBackup without folder data, unfortunately and at least spotify-backup.py also without collaborative playlists (don't know for SpotMyBackup).
#ITUNES PLAYLIST EXPORT TO SPOTIFY DOWNLOAD#
It provides a Python script file to download and run locally.
#ITUNES PLAYLIST EXPORT TO SPOTIFY HOW TO#
Is yet another Spotify playlists backup tool. This video will show you how to create a new playlist in Spotify and then transfer your iTunes music into that playlist using the M2S for Spotify app.