Backs up all public Spotify playlists for a given user to text files in both Spotify and human readable formats
Backs up all public or privte Spotify playlists for a given user to text files in both Spotify and human readable formats
Spotify track URI format can be copied and pasted back in to Spotify to restore a playlist to a previous state
(for example if you accidentally deleted a track and didn't do an immediate Ctrl-Z / Cmd-Z)
Requires \$SPOTIFY_USER be set in the environment or else given as the second arg
Requires \$SPOTIFY_USER be set in the environment or else given as the second argfor public playlists
Requires \$SPOTIFY_ID and \$SPOTIFY_SECRET to be defined in the environment
Caveat: due to limitations of the Spotify API, this by default only works for public playlists. For private playlists you must get an interactively authorized access token like so:
Caveat: due to limitations of the Spotify API, by default works on public playlists.
For private playlists you must exportSPOTIFY_PRIVATE=1 and preferably pre-generate the token in your shell to prevent repeated web authorization pop-ups: