Skip to content
Fábián Varga edited this page Nov 13, 2022 · 2 revisions

Welcome to the Spotify Backup and Restore Tool (SBRT) wiki!

Currently SBRT only supports backups, a restoration tool is WIP.

This wiki will help you set up SBT and use it to back up your Spotify library! This project consists of two parts:

  • A "backupper" tool
    • Does the "creating backups" part.
    • Uses Spotify's APIs to fetch all your saved tracks and playlists and exports them into a backup file.
  • A "restore" tool
    • Restores backed-up tracks into an account.
    • Reads saved tracks and playlists from a backup file created by the backup tool and uses Spotify's APIs to put them back into a Spotify account.

Common references

SBRT - Spotify Backup and Restore Tool
SBT - Spotify Backup Tool
SRT - Spotify Restore Tool


OS support

This project should work on any operating system, although as of now, it was only tested on macOS Monterey 12.6.1 with Python 3.9.

Dependencies

Since this project is written in Python, you'll need to install it. If you need help installing Python on your machine, please check Python's beginner guide.
Note: Please use Python version 3.9 or later. Python 2.7 is not and will not be supported, as it's deprecated.

Next, you'll need to install some libraries.

  • PySimpleGUI
    • A library for creating GUIs.
    • Install it using pip install PySimpleGUI
  • spotipy
    • Allows using Spotify's APIs
    • Install it using pip install spotipy

Setting up a Spotify client ID

In order to use SBRT, you'll need to allow it to access your Spotify account.

WARNING: Doe to Spotify's API restrictions, SBRT will NOT work with an account without a Premium subscription. I cannot "fix" this. This is entirely on Spotify.

You can follow Spotipy's getting started guide on how to set up a Spotify client. I'll make a custom guide on this later.