===
An command line tool to show lyric of current playing song on Spotify. Use 千千音樂 Search to optimize Chinese song searching result.
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.
- Go to https://developer.spotify.com/dashboard/login, use your Spotify Account to sign in.
- click on CREATE CLIENT ID, follow all the instructions to create your application.
- You can find your Client ID on the Dashboard, click SHOW CLIENT SECRET to get the secret token.
- Go to Edit Settings and add the following uri to Redirect URIs: http://localhost:8888/callback/. Make sure you save it.
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/'
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.