Command-line tool for displaying spotify artist and album information.
-
Make sure you have
pythonandpipinstalled. -
Register a spotify app and name it
sfetchor whatever name you would like.
The redirect URI can be any valid URI such as http://localhost, http://example.com.
Once you have successfully registered an app, find your Client ID and Client Secret.
Don't share your Client ID and Client Secret.
- Put the following variables you just got in your
.zshrcor.bashrcor whatever shell you are using
export SPOTIPY_CLIENT_ID='your_client_id'
export SPOTIPY_CLIENT_SECRET='your_client_secret'Remember to restart your shell!
Install with pipx
pipx install sfetch- Clone the repository
git clone https://github.com/mihasket/sfetch.git
cd sfetch- Make a virtual environment
python3 -m venv .venv- Activite the environment
. .venv/bin/activate- Install sfetch
pip install sfetchFor displaying artist information
sfetch --artist "C418"For displaying album information
sfetch --artist "C418" --album "Volume Beta"For additional help
sfetch --help