README ¶ Spotify History Saver 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. Setup You will need gvm (go version manager) Create a Spotify application at: https://developer.spotify.com/dashboard/applications Run bin/activate and build with go 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 Generate OAuth token with ./SpotifyPlaybackSaver -login That will generate a token.json file with credentials Start ./SpotifyPlaybackSaver and enjoy! Database schema https://dbdiagram.io/d/6055e6a2ecb54e10c33c63ac Many thanks to these libraries that made my life easier: https://github.com/zmb3/spotify https://github.com/gobuffalo https://github.com/antonfisher/nested-logrus-formatter https://github.com/sirupsen/logrus Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files main.go Directories ¶ Show internal Expand all Path Synopsis login models spotifySaver Click to show internal directories. Click to hide internal directories.