Cool CLI that creates a Spotify playlist based on a Setlist.fm entry, written in Go.
Just run the following command, replacing the URL with the one you want to create a playlist from:
setlist-to-playlist --url https://www.setlist.fm/setlist/blink182/2024/autodromo-de-interlagos-sao-paulo-brazil-53aa1325.html- Download the latest release for your OS from the releases page
- Extract the tarball to a folder in your PATH (like
$HOME/.local/binor/usr/local/bin) - Run
setlist-to-playlist --helpto check if the installation was successful
- Go to the Spotify Developer Dashboard
- Click on "Create app" and fill in the required fields, but pay attention to the following:
- The
Redirect URIsfield MUST behttp://localhost:8080/callback - The
Web APIcheckbox MUST be checked
- The
- Copy the
Client IDandClient Secretto a safe place
- Go to the Setlist.fm API page and fill in the required fields
- Copy the generated
API Keyto a safe place
On the first run, the CLI will ask for the credentials you generated in the previous steps. Just copy and paste them when prompted and the CLI will store them in a TOML configuration file in your home directory ($HOME/.config/setlist-to-playlist on Linux and $HOME/Library/Application Support/setlist-to-playlist on macOS).
- Go 1.22.3 (or later)
- GNU Make
- Clone the repository
- Run
make tidyto install dependencies
- Just execute
go run ./cmd/cli/main.go --url SOME_URL_HEREto run the CLI
make testmake buildmake clean-all