Skip to content

simonbru/spotify-backup

Repository files navigation

Spotify Backup script

Export Spotify playlists to JSON files. Requires Python 3.6+ and Spotipy to access Spotify's API.

Usage

Install Spotipy, e.g. using pip or pipenv (recommended).

Configure backup folder in config.py (default is ./playlists).

Run ./export_playlists.py

Authentication

By default, a short-lived token is used to gain access to your Spotify playlists. If you only want to run the script occasionally or as a one-off, this will work for you.

If you want to run the script on a schedule or via automation, you will need to use refreshable authentication. This allows you to only have to grant access to your Spotify account once, rather than each time the script is run.

To do this, you will need to obtain your own Spotify client ID and client secret. See https://developer.spotify.com/documentation/general/guides/app-settings/ for instructions on how to do this. These details are then set in config.py.

About

Backup script for Spotify playlists

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages