An command line tool to show lyric of current playing song on Spotify (especially for CN)
===
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.
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/'
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.