❖ Information
SpotiFetch.rs is a simple fetch tool to display info about your Spotify profile using the spotify API. It's a rewrite of the original spotifetch
❖ Requirements
Register an app on the Spotify developer dashboard here
Edit the app settings and set http://127.0.0.1:9090 as the redirect URI
Take a note of your Client ID and Client Secret
Put the following in your .bashrc or .zshrc or the equivalent for your shell
❖ Installation
Shell
|
Brew
Powershell
Cargo
Binaries
Pre-Compiled binaries for linux, mac, and windows are available in Releases
Source
- First, install rust
❖ Usage
If the instructions in the Requirements section are followed properly, SpotiFetch will ask you to log in and give permissions to fetch stats the first time it's used. Login is not required after the first use.
Usage: spotifetch [OPTIONS] <COMMAND>
Commands:
profile Fetch general information about user profile
top-tracks Fetch the top tracks for a given term
top-artists Fetch the top artists for a given term
help Print this message or the help of the given subcommand(s)
Options:
-c, --colorscheme <STR> See the readme for available colorschemes [default: "catppuccin mocha"]
-t, --term <STR> The timeline for the top tracks/artists; short, mid, long [default: mid]
-a, --art Use cover art for album or artist to generate a colorscheme
-r, --random Use a random color as the outline
-h, --help Print help
-V, --version Print version
SpotiFetch can be used like any other fetch tool
The top artists and tracks depends on the time-frame. By default, SpotiFetch fetches your top artists in the short term, but mid term, and long term are also available using the --term/-t option.
SpotiFetch supports --random/-r option to print the spotify ascii art with a random colored outline instead of the usual green
SpotiFetch can be used with a variety of different colorschemes.
SpotiFetch uses catppuccin mocha as it's default color scheme, but a different one can be specified using the
--colorscheme/coption
For example:
The list of all available colorschemes can be found here
SpotiFetch also supports dynamically generated colorschemes using the --art/a option
❖ About SpotiFetch.rs
SpotiFetch.rs is the direct result of browsing too many unix subreddits and general interest in cli tools. This is a rewrite of the original spotifetch because I don't feel like maintaining old python projects.
❖ What's New?
1.0.2 - Update kolorz