{"id":13529371,"url":"https://github.com/Leecason/netease-music-box","last_synced_at":"2025-04-01T16:31:23.847Z","repository":{"id":40712102,"uuid":"283536848","full_name":"Leecason/netease-music-box","owner":"Leecason","description":"🎧 将你最近一周的网易云音乐的听歌记录更新到 Gist","archived":false,"fork":false,"pushed_at":"2022-12-13T10:22:17.000Z","size":1057,"stargazers_count":70,"open_issues_count":3,"forks_count":64,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T07:18:24.889Z","etag":null,"topics":["awesome-pinned-gists","gistbox","github-gist","netease-cloud-music","netease-music","pinned-gist","profile","profile-readme"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Leecason.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-29T15:33:53.000Z","updated_at":"2024-12-21T05:37:02.000Z","dependencies_parsed_at":"2023-01-28T11:01:16.023Z","dependency_job_id":null,"html_url":"https://github.com/Leecason/netease-music-box","commit_stats":{"total_commits":31,"total_committers":3,"mean_commits":"10.333333333333334","dds":0.09677419354838712,"last_synced_commit":"f22156d46c115a00c15920ff5ad0d7138d6ea3e4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leecason%2Fnetease-music-box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leecason%2Fnetease-music-box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leecason%2Fnetease-music-box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leecason%2Fnetease-music-box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Leecason","download_url":"https://codeload.github.com/Leecason/netease-music-box/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246670543,"owners_count":20815002,"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":["awesome-pinned-gists","gistbox","github-gist","netease-cloud-music","netease-music","pinned-gist","profile","profile-readme"],"created_at":"2024-08-01T07:00:35.776Z","updated_at":"2025-04-01T16:31:23.557Z","avatar_url":"https://github.com/Leecason.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","External Services"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/Leecason/netease-music-box/blob/master/assets/gist_preview.png\" width=\"550\"\u003e\n  \u003ch2 align=\"center\"\u003eNetease Music Box\u003c/h2\u003e\n  \u003cp align=\"center\"\u003e将你最近一周的网易云音乐的听歌记录更新到 Gist\u003c/p\u003e\n\u003c/p\u003e\n\n---\n\n\u003e 📌✨ 更多像这样的 Pinned Gist 项目请访问：https://github.com/matchai/awesome-pinned-gists\n\n## 🖥 使用\n\n### 🎒 前置工作\n\n1. 创建一个公开的 Github Gist (https://gist.github.com)\n\n2. 创建一个 GitHub Token，需要勾选 `gist` 权限，复制生成的 Token (https://github.com/settings/tokens/new)\n\n3. 获取网易云音乐用户 ID (https://music.163.com)\n\n    - ID 为个人主页页面（`https://music.163.com/#/user/home?id=xxx`），`id` 后紧跟的那串数字\n\n    ![USER_ID](https://github.com/Leecason/netease-music-box/blob/master/assets/user_id.png)\n\n4. 获取网易云音乐用户 Token\n\n    - 在登录态下打开浏览器开发者工具，查看 Cookie，获取 `key` 为 `MUSIC_U` 的 `value`\n\n    ![USER_TOKEN](https://github.com/Leecason/netease-music-box/blob/master/assets/user_token.png)\n\n### 🚀 安装\n\n1. Fork 这个仓库\n\n2. 进入 Fork 后的仓库，启用 Github Actions\n\n3. 编辑 `.github/workflows/schedule.yml` 文件中的环境变量：\n\n    - **GIST_ID**: ID 是新建 Gist 的 `url` 后缀: `https://gist.github.com/Leecason/`**`b51bc9844585c33775edc27bb38ad2ab`**\n\n    - **USER_ID**: 网易云音乐用户 ID\n\n4. 在项目的 `Settings \u003e Secrets` 中创建两个变量 `GH_TOKEN` 和 `USER_TOKEN`，分别为 Github Token 和 网易云音乐用户 Token\n\n5. [在个人资料中嵌入 Gist](https://docs.github.com/en/github/setting-up-and-managing-your-github-profile/pinning-items-to-your-profile)\n\n## 🤔 工作原理\n\n- 基于 [NeteaseCloudMusicApi](https://github.com/Binaryify/NeteaseCloudMusicApi) 获取听歌记录\n- 基于 Github API 更新 Gist\n- 使用 Github Actions 自动更新 Gist\n\n## 📄 开源协议\n\n本项目使用 [MIT](./LICENSE) 协议\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeecason%2Fnetease-music-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLeecason%2Fnetease-music-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeecason%2Fnetease-music-box/lists"}