Skip to content

An command line tool to show lyric of current playing song on Spotify (especially for CN)

Notifications You must be signed in to change notification settings

antoncoding/spotify_lyric

Repository files navigation

Spotify Lyric

===

An command line tool to show lyric of current playing song on Spotify. Use 千千音樂 Search to optimize Chinese song searching result.

Usage

0. Clone and install packages

git clone https://github.com/antoncoding/spotify_lyric
pip install -r requirements.txt
pip install git+https://github.com/plamere/spotipy.git --upgrade

You must use the last command to manually upgrade spotipy.

1. Get Spotipy Client Token

  • You can find your Client ID on the Dashboard, click SHOW CLIENT SECRET to get the secret token.

2. Create const.py

You can either create a const.py file in the root directory or just rename const_example.py to const.py. Paste the CLIENT_ID and CLIENT_SECRET you got from app dashboard here. (Also make sure the redirect_uri match the value you set in the dashboard setting.)

USERNAME = 'Anton'
CLIENT_ID = 'PASTE YOUR CLIENT IT HERE'
CLIENT_SECRET = 'PASTE YOUR CLIENT SECRET HERE'
REDIRECT_URI = 'http://localhost:8888/callback/'

3. Run it for the first time

Run the following command to start the tool:

python start_live_lyric.py

If this is your first time running with the USERNAME you set, you will be ask to login to Spotify on your web browser, copy the whole uri you were redirected to and paste it to the terminal:

Example URI:

http://localhost:8888/callback/?code=AQBIrqzUgg21VHOB8g4u-mzGvKv_IG7d39PirD3iWr5bM6awaeAOrQiweCdOMWOO03EI9hoae51oEuqNVzpJC1xxJXT6LcdI53aGjJTtGRMyRW52bPsXU58gTpn96lzp-mNOpPeDWaJVAKQ53ZNxD3-ebnHAEhlb48il3QlqO5r8bTYdXmlItgyA9wPXTENp8xZoOyepZHWAs6aZRtbmmWVnEiFSTLGwLD7e_QBVr1loGKnr

Press Enter to start the tool.

About

An command line tool to show lyric of current playing song on Spotify (especially for CN)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages