Crates.io | spotifetch |
lib.rs | spotifetch |
version | 0.1.4 |
source | src |
created_at | 2024-02-11 21:01:51.17531 |
updated_at | 2024-08-28 20:10:57.910418 |
description | A simple and beautiful fetch tool for spotify, now rusty :) |
homepage | https://github.com/dotzenith/SpotiFetch.rs |
repository | https://github.com/dotzenith/SpotiFetch.rs |
max_upload_size | |
id | 1136094 |
size | 95,623 |
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
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
export RSPOTIFY_CLIENT_ID='insert-your-spotify-client-id-here'
export RSPOTIFY_CLIENT_SECRET='insert-your-spotify-client-secret-here'
export RSPOTIFY_REDIRECT_URI='http://127.0.0.1:9090'
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/dotzenith/SpotiFetch.rs/releases/latest/download/spotifetch-installer.sh | sh
brew tap dotzenith/tap
brew install spotifetch
irm https://github.com/dotzenith/SpotiFetch.rs/releases/latest/download/spotifetch-installer.ps1 | iex
cargo install spotifetch
Pre-Compiled binaries for linux, mac, and windows are available in Releases
git clone https://github.com/dotzenith/SpotiFetch.rs.git
cd SpotiFetch.rs
cargo build --release
./target/release/spotifetch
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 profile # fetches profile stats
$ spotifetch top-artists # fetches your top five artists
$ spotifetch top-tracks # fetches your top five songs
--term
/-t
option.$ spotifetch top-artists -t short # fetches top artists in the short term
$ spotifetch top-artists -t mid # fetches top artists in the mid term
$ spotifetch top-artists -t long # fetches top artists in the long term
--random
/-r
option to print the spotify ascii art with a random colored outline instead of the usual green$ spotifetch profile # prints green spotify art
$ spotifetch profile --random # prints spotify art with random color
SpotiFetch uses catppuccin mocha as it's default color scheme, but a different one can be specified using the
--colorscheme
/c
option
For example:
$ spotifetch profile # uses catppuccin mocha
$ spotifetch profile -c nord # uses nord
The list of all available colorschemes can be found here
--art
/a
option$ spotifetch profile --art # Generates colorscheme based on the cover art of the recently played song
$ spotifetch top-artists --art # Generates colorscheme based on the profile image of the top artist
$ spotifetch top-tracks --art # Generates colorscheme based on the cover art of the top track
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.
0.1.4 - Move away from openssl