SpotifyHistorySaver

command module
v0.0.0-...-5782047 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2021 License: GPL-2.0 Imports: 14 Imported by: 0

README

Spotify History Saver

GitHub

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)
  1. Create a Spotify application at: https://developer.spotify.com/dashboard/applications
  2. Run bin/activate and build with go build
  3. 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
  4. Generate OAuth token with ./SpotifyPlaybackSaver -login
    • That will generate a token.json file with credentials
  5. Start ./SpotifyPlaybackSaver and enjoy!
Database schema

https://dbdiagram.io/d/6055e6a2ecb54e10c33c63ac

Database

Many thanks to these libraries that made my life easier:

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL