dev-mbo / spotify-lyrics

Show the lyrics of the current playing song on spotify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spotify-lyrics

Shows the lyrics of the current playing song on spotify

Create Spotify API Client ID and Client Secret

Add the following environment variables to a .env file in your project folder:

CLIENT_ID=<your client ID>
CLIENT_SECRET=<your client secret>
SCOPES=user-read-private user-read-email user-read-playback-state
REDIRECT_URI=http://localhost:5000/callback

Generate a Session Key

Create a random secret by using:

python -c 'import os; print(os.urandom(16))'

Add the value to the environment variable FLASK_SECRET_KEY in your .env file.

Run app

First install all the python dependencies and create a virtual environment if you want:

virtualenv venv
source venv/bin/activate
pip3 install -r requirements.txt

Then start the app by typing:

export FLASK_APP=run.py
flask run

About

Show the lyrics of the current playing song on spotify


Languages

Language:Python 95.0%Language:HTML 5.0%