spotlike is the CLI tool to LIKE contents in Spotify.
This tool uses Spotify Web API with Go wrapper library.
Available Commands:
auth, au, a 🔑 Authenticate your Spotify client.
get, ge, g 📚 Get the information of the content on Spotify by ID.
like, li, l 🤍 Like content on Spotify by ID.
unlike, un, u 💔 Unlike content on Spotify by ID.
search, se, s 🔍 Search for the ID of content in Spotify.
completion, comp, c 🔧 Generate the autocompletion script for the specified shell.
version, ver, v 🔖 Show the version of spotlike.
help 🤝 Help for spotlike.
Flags:
-h, --help 🤝 help for spotlike
-v, --version 🔖 version for spotlike
Search for the ID of content in Spotify.
Flags:
-A, --artist 🎤 search for artists
-a, --album 💿 search for albums
-t, --track 🎵 search for tracks
-m, --max 🔢 maximum number of search results (default 10)
-f, --format 📝 format of the output (default "table", e.g: "plain")
-h, --help 🤝 help for search
Arguments:
keywords 🔡 search content by keywords (multiple keywords are separated by a space)
Like content on Spotify by ID.
Flags:
-A, --artist 🆔 an ID of the artist to like all albums released by the artist
-a, --album 🆔 an ID of the album to like all tracks in the album
--no-confirm 🚫 do not confirm before liking the track
-f, --format 📝 format of the output (default "table", e.g: "plain")
-h, --help 🤝 help for track
Arguments:
ID 🆔 ID of the tracks (e.g: "20q73dOrP7ceLGAJQVtuTq 5A7nqzXUt5IZIOA7oNBv6M")
Flags:
-A, --artist 🆔 an ID of the artist to like all albums released by the artist
--no-confirm 🚫 do not confirm before liking the album
-f, --format 📝 format of the output (default "table", e.g: "plain")
-h, --help 🤝 help for album
Arguments:
ID 🆔 ID of the albums (e.g: "1dGzXXa8MeTCdi0oBbvB1J 6Xy481vVb9vPK4qbCuT9u1")
Flags:
--no-confirm 🚫 do not confirm before liking the artist
-f, --format 📝 format of the output (default "table", e.g: "plain")
-h, --help 🤝 help for artist
Arguments:
ID 🆔 ID of the artists (e.g: "00DuPiLri3mNomvvM3nZvU 3B9O5mYYw89fFXkwKh7jCS")
Unlike content on Spotify by ID.
Subcommands and flags are the same as the like command.
Get the information of the content on Spotify by ID.
Flags:
-f, --format 📝 format of the output (default "table", e.g: "plain")
-h, --help 🤝 help for albums
Argument:
ID 🆔 ID of the albums (e.g: "1dGzXXa8MeTCdi0oBbvB1J")
Flags:
-f, --format 📝 format of the output (default "table", e.g: "plain")
-h, --help 🤝 help for tracks
Argument:
ID 🆔 ID of the artist or album (e.g: "00DuPiLri3mNomvvM3nZvU")
- Login Spotify Developer.
- Open Dashboard.
- Press
Create Appbutton and input below.App name(e.g.spotlike)App description(e.g.spotlike is a CLI tool to LIKE the contents in Spotify.)Redirect URIs(recommended:http://localhost:8080/callback)Which API/SDKs are you planning to use(checkWeb API)
- Open
Basic Informationfrom created app in Dashboard. - Get
Client IDandClient secret. - Set environments below.
SPOTIFY_IDSPOTIFY_SECRETSPOTIFY_REDIRECT_URI
- Now, you're ready for authenticate in
spotlike!
export SPOTIFY_ID=your_client_idexport SPOTIFY_SECRET=your_client_secretDefault : http://localhost:8080/callback
export SPOTIFY_REDIRECT_URI=http://localhost:8080/callbackThis is automatically obtained after running spotlike auth.
export SPOTIFY_REFRESH_TOKEN=your_refresh_tokengo install github.com/yanosea/spotlike/app/presentation/cli/spotlike@latestbrew tap yanosea/tap
brew install yanosea/tap/spotlikeGo to the Releases and download the latest binary for your platform.
Reinstall spotlike!
go install github.com/yanosea/spotlike/app/presentation/cli/spotlike@latestbrew update
brew upgrade spotlikeDownload the latest binary from the Releases page and replace the old binary in your $PATH.
rm $GOPATH/bin/spotlike
# maybe you have to execute with sudo
rm -fr $GOPATH/pkg/mod/github.com/yanosea/spotlike*brew uninstall spotlike
brew untap yanosea/tap/spotlikeRemove the binary you downloaded and placed in your $PATH.
- Spotify's smartphone app or web app does not have the way below.
- LIKE all tracks in one album.
- LIKE all albums from one artist.
- I wanted to LIKE them at once, so I created it!!
Feel free to point me in the right direction🙏
