Code Monkey home page Code Monkey logo

netease-music-box's Introduction

Netease Music Box

将你最近一周的网易云音乐的听歌记录更新到 Gist


📌✨ 更多像这样的 Pinned Gist 项目请访问:https://github.com/matchai/awesome-pinned-gists

🖥 使用

🎒 前置工作

  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 后紧跟的那串数字

    USER_ID

  4. 获取网易云音乐用户 Token

    • 在登录态下打开浏览器开发者工具,查看 Cookie,获取 keyMUSIC_Uvalue

    USER_TOKEN

🚀 安装

  1. Fork 这个仓库

  2. 进入 Fork 后的仓库,启用 Github Actions

  3. 编辑 .github/workflows/schedule.yml 文件中的环境变量:

    • GIST_ID: ID 是新建 Gist 的 url 后缀: https://gist.github.com/Leecason/b51bc9844585c33775edc27bb38ad2ab

    • USER_ID: 网易云音乐用户 ID

  4. 在项目的 Settings > Secrets 中创建两个变量 GH_TOKENUSER_TOKEN,分别为 Github Token 和 网易云音乐用户 Token

  5. 在个人资料中嵌入 Gist

🤔 工作原理

  • 基于 NeteaseCloudMusicApi 获取听歌记录
  • 基于 Github API 更新 Gist
  • 使用 Github Actions 自动更新 Gist

📄 开源协议

本项目使用 MIT 协议

netease-music-box's People

Contributors

leecason avatar tosakaucw avatar biningo avatar dependabot[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.