spins

command module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: MIT Imports: 3 Imported by: 0

README

Spotify Insights (spins)

GitHub Version CI Go Report Card Coverage

Leveraging Spotify data to generate insights and recommendations.

Setup

  1. Download the executable for your OS
  2. Create a new Spotify App
  3. Add the following redirect URL to your app: http://localhost:8888/token
  4. Run ./spins init
  5. Open the newly generated configuration file and set values for:
    1. geo.market, your country code
    2. client.id, available in your Spotify Developer Dashboard.
    3. client.secret, available in your Spotify Developer Dashboard.

For Linux and macOS users, you will also need to make the file executable:

chmod +x spins

Commands

Init

Initializes the configuration file.

./spins init

Wraps the Spotify API search function and outputs its results.

./spins search -query "mars" -type track,artist

More details:

./spins search --help
Recommend

Given a seed track id or url, creates a new playlist with similar songs from related artists.

./spins recommend -track-id 1fTDYdx5zYfWJSX0JlKO8o

More details:

./spins recommend --help

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package cli implements the commands used by the CLI tool, using all other packages.
Package cli implements the commands used by the CLI tool, using all other packages.
Package config implements configuration management using YAML files.
Package config implements configuration management using YAML files.
Package insights implements insight calculation based on data from the Spotify API and the generation of visualizations for insights.
Package insights implements insight calculation based on data from the Spotify API and the generation of visualizations for insights.
internal
testutils
Package testutils implements test utilities for all tests in the module.
Package testutils implements test utilities for all tests in the module.
Package sdk implements a lightweight wrapper for the Spotify API.
Package sdk implements a lightweight wrapper for the Spotify API.

Jump to

Keyboard shortcuts

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