Skip to content

mihasket/sfetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify Fetch

Command-line tool for displaying spotify artist and album information.

Requirements

  1. Make sure you have python and pip installed.

  2. Register a spotify app and name it sfetch or 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.

  1. Put the following variables you just got in your .zshrc or .bashrc or whatever shell you are using
export SPOTIPY_CLIENT_ID='your_client_id'
export SPOTIPY_CLIENT_SECRET='your_client_secret'

Remember to restart your shell!

Installation

Install with pipx

pipx install sfetch

Development

  1. Clone the repository
git clone https://github.com/mihasket/sfetch.git
cd sfetch
  1. Make a virtual environment
python3 -m venv .venv
  1. Activite the environment
. .venv/bin/activate
  1. Install sfetch
pip install sfetch

Usage example

For displaying artist information

sfetch --artist "C418"

For displaying album information

sfetch --artist "C418" --album "Volume Beta"

For additional help

sfetch --help

About

Command-line tool for displaying spotify artist and album information

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages