Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spotify-backup

Backup a list of your Spotify saved tracks, artists and playlists.

Requirements

Ruby >= 2.0 (no extra gems needed)

Usage

You have to create an OAuth token to be able to access your data.

Create the token with the scopes shown in the screenshot.

Spotify OAuth Token Creation

The generated token needs to be exported into the SPOTIFY_TOKEN environment variable before running the script.

Example:

$ export SPOTIFY_TOKEN=<spotify oauth token>
$ ruby spotify-backup.rb /output/path
Writing /output/path/spotify-20150822-190843-tracks.json
Writing /output/path/spotify-20150822-190843-artists.json
Writing /output/path/spotify-20150822-190843-playlists.json

The script creates a separate JSON files for tracks, artists and playlists in the output path.

WARNING: The token times out pretty quick so it cannot really be used in automatic backup scripts.

Contributing

All contributions are welcome!

License

Apache License 2.0 - See LICENSE file for details.

About

Backup Spotify saved tracks, artists and playlists

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages