{"id":15888290,"url":"https://github.com/antoncoding/spotify_lyric","last_synced_at":"2025-03-20T10:30:41.202Z","repository":{"id":104220391,"uuid":"181178195","full_name":"antoncoding/spotify_lyric","owner":"antoncoding","description":" An command line tool to show lyric of current playing song on Spotify (especially for CN)","archived":false,"fork":false,"pushed_at":"2023-01-23T22:21:42.000Z","size":68,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T23:52:36.215Z","etag":null,"topics":["lyrics","lyrics-fetcher","python","spotify","spotify-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antoncoding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-13T13:51:37.000Z","updated_at":"2023-11-21T01:00:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"b83da8ff-4e68-44a8-b8fb-bbdd52d2ac47","html_url":"https://github.com/antoncoding/spotify_lyric","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoncoding%2Fspotify_lyric","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoncoding%2Fspotify_lyric/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoncoding%2Fspotify_lyric/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoncoding%2Fspotify_lyric/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antoncoding","download_url":"https://codeload.github.com/antoncoding/spotify_lyric/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244066180,"owners_count":20392406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lyrics","lyrics-fetcher","python","spotify","spotify-api"],"created_at":"2024-10-06T06:06:59.595Z","updated_at":"2025-03-20T10:30:41.192Z","avatar_url":"https://github.com/antoncoding.png","language":"Python","readme":"# Spotify Lyric\n\n===\n\n\u003e An command line tool to show lyric of current playing song on Spotify.\n\u003e Use 千千音樂 Search to optimize Chinese song searching result.\n\n![](https://i.imgur.com/7SN1nmG.jpg)\n\n## Usage\n\n### 0. Clone and install packages\n\n```console\ngit clone https://github.com/antoncoding/spotify_lyric\npip install -r requirements.txt\npip install git+https://github.com/plamere/spotipy.git --upgrade\n```\n\nYou must use the last command to manually upgrade spotipy.\n\n### 1. Get Spotipy Client Token \n\n* Go to https://developer.spotify.com/dashboard/login, use your Spotify Account to sign in.\n* click on **CREATE CLIENT ID**, follow all the instructions to create your application.\n\n![](https://i.imgur.com/vQ1YTOS.png)\n\n* You can find your Client ID on the Dashboard, click **SHOW CLIENT SECRET** to get the secret token.\n\n![](https://i.imgur.com/JeQcDxM.png)\n\n\n* Go to **Edit Settings** and add the following uri to **Redirect URIs**: http://localhost:8888/callback/. Make sure you save it.\n\n![](https://i.imgur.com/S1kJfbe.png)\n\n### 2. Create `const.py`\n\nYou 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.)\n\n```python\nUSERNAME = 'Anton'\nCLIENT_ID = 'PASTE YOUR CLIENT IT HERE'\nCLIENT_SECRET = 'PASTE YOUR CLIENT SECRET HERE'\nREDIRECT_URI = 'http://localhost:8888/callback/'\n```\n\n### 3. Run it for the first time\n\nRun the following command to start the tool:\n\n```console\npython start_live_lyric.py\n```\n\nIf 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:\n\nExample URI:\n\n```\nhttp://localhost:8888/callback/?code=AQBIrqzUgg21VHOB8g4u-mzGvKv_IG7d39PirD3iWr5bM6awaeAOrQiweCdOMWOO03EI9hoae51oEuqNVzpJC1xxJXT6LcdI53aGjJTtGRMyRW52bPsXU58gTpn96lzp-mNOpPeDWaJVAKQ53ZNxD3-ebnHAEhlb48il3QlqO5r8bTYdXmlItgyA9wPXTENp8xZoOyepZHWAs6aZRtbmmWVnEiFSTLGwLD7e_QBVr1loGKnr\n```\n\n![](https://i.imgur.com/Az2xJSc.png)\n\nPress `Enter` to start the tool.\n\n![](https://i.imgur.com/4TxAwSt.jpg)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoncoding%2Fspotify_lyric","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantoncoding%2Fspotify_lyric","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoncoding%2Fspotify_lyric/lists"}