This service is used to save your Spotify history every 45 minutes. The fetched songs are saved in a MySQL database. It uses OAuth to log into Spotify.
- Create a Spotify application at: https://developer.spotify.com/dashboard/applications
- Run
bin/activate
and build withgo build
- Create
.env
file out of.env.example
and add client credentials- Don't forget to create database and load schema with
./SpotifyPlaybackSaver -create_db
and./SpotifyPlaybackSaver -migrate
- Also add db credentials to
.env
file
- Don't forget to create database and load schema with
- Generate OAuth token with
./SpotifyPlaybackSaver -login
- That will generate a
token.json
file with credentials
- That will generate a
- Start
./SpotifyPlaybackSaver
and enjoy!