Move across playlists that you follow from one Spotify account to another.
There are many applications such as SpotMyBackup that allow you to import/export songs within playlists. This is great for playlists that are created by you, but what about playlists that you would like to follow rather than recreate?
That is where this script comes to play! This script will gather all followed playlists from one account, and then follow those playlists in another account.
- Login to Spotify Developer Dashboard and create a new application. You should then be able to view the Client ID and Client Secret in the top left corner of the webpage. In order to create a new Redirect URI, click edit settings in the top right corner in the dashboard and add a new Redirect URI
e.g. http://localhost:0000/callback. Add these to values to the respective functions in thesecrets_manager.pyfile.
- Update necessary parameters in
secrets_manager.pyand then run the script. - Login to the source Spotify account i.e. the account which holds the playlists you want to transfer over.
- The script should automatically open a browser window and request acceptance to progress further. Once accepted, the browser will then redirect. Copy the URL and paste into the terminal. Note that this occurs twice due to limitations with Spotify's API which requires two different scopes to obtain collaborative and private playlists.
- Login to the target Spotify account i.e. the account which you want to add the playlists to.
- Once again, the script should automatically open a browser window and request acceptance to progress further. Once accepted, the browser will then redirect. Copy the URL and paste into the terminal.
- All playlists should now be transferred over!

