https://github.com/wxriw/spotify-lyrics-highlight
分析歌手或专辑的歌词的单词分布情况,仅适用于 Spotify
https://github.com/wxriw/spotify-lyrics-highlight
Last synced: 10 months ago
JSON representation
分析歌手或专辑的歌词的单词分布情况,仅适用于 Spotify
- Host: GitHub
- URL: https://github.com/wxriw/spotify-lyrics-highlight
- Owner: WXRIW
- License: mit
- Created: 2022-12-11T15:28:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-12T00:31:18.000Z (over 3 years ago)
- Last Synced: 2025-03-15T02:41:56.998Z (over 1 year ago)
- Language: Python
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spotify-Lyrics-Highlight
分析歌手或专辑的歌词的单词分布情况,仅适用于 Spotify
## Q&A
### 为啥做这个玩意
emmm因为要交作业
## Get started
首先需要安装 spotipy
```
py -m pip install spotipy
```
然后在 [Spotify Developers](https://developer.spotify.com/dashboard) 中申请一个新的应用,把 `Client ID` 和 `Client Secret` 放进源码
之后再自行完成歌词获取部分的代码,推荐从网易云音乐或 QQ 音乐获取歌词
然后就可以开心的运行啦!
### 这里有一个输出结果样例
```
Statistics for OneRepublic
-----------------
| I | 135 |
| the | 122 |
| that | 73 |
| a | 72 |
| I've | 70 |
| you | 69 |
| been | 66 |
| to | 61 |
| it | 59 |
| run | 59 |
| yeah | 52 |
| and | 49 |
| be | 44 |
| don't | 40 |
| we | 39 |
| all | 39 |
| my | 38 |
| in | 36 |
| me | 36 |
| but | 33 |
-----------------
By the way, we found that there are 85 SOMEs, isn't that amazing?!
```