A Tool to Backup and Restore playlists and libraries to Spotify. This tool is primarily meant to do a full backup and restore your spotify data to a new account. Very helpful in the case where you created a spotify account with facebook and want to create a new account directly with spotify.
- Artist Follows
- Playlists
- Saved Songs (Library)
- TODO: User follows
To use the spotify backup tool, simply follow the guides below in order.
Note: I highly recommend that you 'clean' up your account before export. Make sure you have all of the playlists you want so you import everything in nice and clean into your new account.
You can get an access token by one of two ways.
You can log in to the spotify web console and retrieve a token, make sure to give adequate permissions (scope) check main.py for more information.
To use this program, you must first get a spotify access token. You can do this by navigating here and following the steps below.
- Enter the application name "Spotify Backup Tool"
- Set the reply url to https://google.com
- Enter a short description that will help you remember whay this registration is for.
- Collect the Client ID and the Client Secret
- Click Save.
You will provide this information to the tool so that the tool can correctly authenticate to your account.
You can use the same client id and secret for multiple accounts with this tool.
This program was built to run on python 3.6
To run this app you must install the required libraries into the python installation, feel free to create a virtual environment as to not add the required libraries directly onto your python installation.
The requirements are in the requirements.txt file.
After the requirements are installed, simply run:
python main.py
Once the program is running, select the Generate Token Option. After selecting, the program will ask you for the email address of the client, as well as the client id and client secret you got when setting up the app in spotify.
The app will then open a browser and spotify will ask you to approve the app (you may also have to log in to your spotify account here).
Once you authorize the app, it will redirect you to google.com. Copy the url from the address bar and paste it in the console for the tool.
Once you do this, the tool will return your token, save this as you will need it for running backup and restore. You will need to generate a new token for a destination account when running the restore.
If you are having touble try deleting cookies and clearing cache in the browser when getting a token for a second spotify account.
If you already have a token, just run the restore option at the main menu.
Feel free to submit bugs and new feature proposals including new things to be backed up. Just navigate to the issues section of this repo.
Please be as descriptive as possible when writing the issues.