Skip to content

Update a Spotify playlist based on your Shazam library

Notifications You must be signed in to change notification settings

cascooscuro/spotyzam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

spotyzam

Update a Spotify playlist based on the library of your shazams that can be downloaded as a csv file from https://www.shazam.com/myshazam

Downloads

Releases for linux, windows and macOS in the release page https://github.com/cascooscuro/spotyzam/releases

Instructions:

  1. Register an application at: https://developer.spotify.com/my-applications/
  1. In your cmd/shell, set the SPOTIFY_ID environment variable to the client ID you got in step 1.
    • set SPOTIFY_ID=your-spotify-client-id (from windows cmd)
    • export SPOTIFY_ID=your-spotify-client-id (linux/osx shell)
  2. Set the SPOTIFY_SECRET environment variable to the client secret from step 1.
    • set SPOTIFY_SECRET=your-spotify-client-secret (from windows cmd)
    • export SPOTIFY_SECRET=your-spotify-client-secret (linux/osx shell)
  3. In Spotify, Create a playlist where you want your tracks to be added
  4. The csv file expects the format used by shazam: Index,TagTime,Title,Artist,URL,TrackKey. First line is skipped.
  5. Execute: spotyzam playlist-id csv-file.csv
    • e.g. C:\Users\user\Document>spotyzam.exe 37i9dQZF1DX6YTj07PjLwE shazamlibrary.csv

Spotify Application settings

Building/Compiling

  1. Install golang https://go.dev/doc/install
  2. Use git to clone the github repo (git clone https://github.com/cascooscuro/spotyzam.git) or just download the code from https://github.com/cascooscuro/spotyzam/archive/refs/heads/main.zip and unzip it
  3. in the directory where you have spotyzam.go do "go mod init spotyzam" and after that "go mod tidy"
  4. Finally, to compile it: "go build spotyzam.go"
  5. You should have now a binary "spotyzam" in your folder. Youn can run it by doing "./spotyzam" or "spotyzam.exe", depending on your OS
  6. follow the instructions to create the spotify application and playlist and set the environment variable to run it

About

Update a Spotify playlist based on your Shazam library

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages