jpzfm / spotify-meta-tool

spotify-meta-tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spotify Metadata Tool for Alfred


Python 3 script that pulls a song's metadata from Spotify using a track URI or URL as input and outputs a script filter-compatible JSON for Alfred.

Spotify Meta Tool

Requirements


Spotipy

pip install spotipy

JSON Template for Credentials File


Create a creds.json file in the working directory of the script with your Spotify credentials using this template:

{
  "client_id": "YOUR_SPOTIFY_CLIENT_ID",
  "client_secret": "YOUR_SPOTIFY_CLIENT_SECRET"
}

Alfred Script Filter


Example shell script for "script" section of Alfred script filter object:

/usr/local/bin/python3 spotify-meta-tool.py $1

Credits


All included icons by Icons8.

About

spotify-meta-tool


Languages

Language:Python 100.0%