https://github.com/zonemeen/netease-box
🎶 将你的网易云音乐听歌记录更新到 Gist
https://github.com/zonemeen/netease-box
Last synced: 6 months ago
JSON representation
🎶 将你的网易云音乐听歌记录更新到 Gist
- Host: GitHub
- URL: https://github.com/zonemeen/netease-box
- Owner: zonemeen
- License: mit
- Created: 2023-05-11T01:16:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-25T03:07:44.000Z (8 months ago)
- Last Synced: 2025-04-05T00:46:04.166Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 26.4 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# netease-box
![]()
Netease Box
将你的网易云音乐听歌记录更新到 Gist
> 📌✨ 更多像这样的 Pinned Gist 项目请访问:https://github.com/matchai/awesome-pinned-gists
> 灵感来自于 [@jacc's music-box](https://github.com/jacc/music-box)
## 🎒 前置工作
1. 创建一个公开的 Github Gist (https://gist.github.com)
2. 创建一个 GitHub Token,需要勾选 `gist` 权限,复制生成的 Token (https://github.com/settings/tokens/new)
3. 获取网易云音乐用户 ID (https://music.163.com)
- ID 为个人主页页面(`https://music.163.com/#/user/home?id=xxx`),`id` 后紧跟的那串数字
## 🚀 安装
1. Fork 这个仓库
2. 进入 Fork 后的仓库,启用 Github Actions
3. 编辑 `.github/workflows/netease-box.yml` 文件中的环境变量:
- **GIST_ID**: `id` 是新建 Gist 的 `url` 后缀: `https://gist.github.com/zonemeen/f802683988594e7369f6c2c5e23286eb`
- **ACCOUNT_ID**: 网易云音乐用户 `id`
- **SONG_TYPE**: 歌曲排行类型,默认为 `1`,代表最近一周的听歌排行;输入 `0` 代表所有时间的听歌排行
4. 在项目的 `Settings > Secrets` 中创建 Github Token 变量 `GH_TOKEN`,填入到 `.github/workflows/netease-box.yml` 文件中的环境变量
5. [在个人资料中嵌入 Gist](https://docs.github.com/en/github/setting-up-and-managing-your-github-profile/pinning-items-to-your-profile)
## 📄 开源协议
本项目使用 [MIT](./LICENSE) 协议