ProfileStatusSyncer
A tool to synchronize user profile status of GitHub and Netease CloudMusic
Features
- Synchronize user profile status between GitHub and NeteaseCloud Music
- Automatically maintain your NeteaseCloud Music profile status to avoid it being cancelled after three days
Quick start
Preparations
-
GitHub Access Token (Generate from Settings -> Developer settings -> Personal access tokens)
-
Your NeteaseCloud Music Cookie (Only needs the
MUSIC_U
field)
The NeteaseCloud Music Cookie can be taken from your browser's cookie storage.Or you can also use the QuickLogin tool to get it.
Configuration
GitHub Action
-
Fork the ProfileStatusSyncer repository.
-
Go to settings -> secrets -> Actions
-
Add a secret called
TOKEN
and set the value to your GitHub access token. -
Add a secret called
MUSIC_U
and set the value to your NeteaseCloud Music Cookie.
Then you can then run the action named syncer manually and check the output log to see if it works.
The action will run automatically at 21:00 UTC time every day by default, if you want to change this setting, please edit .github/workflows/syncer.yml
file.
Command Line
Download the latest release from here and run the following command:
$ chmod +x ./ProfileStatusSyncer
$ GITHUB_TOKEN=<your GitHub access token> MUSIC_U=<your NeteaseCloud Music Cookie> ./ProfileStatusSyncer
Mode Configuration
It is possible to run the tool in three modes:
-
Set the environment variable
MODE
toGitHub2Netease
to sync GitHun profile status to NeteaseCloud Music. -
Set the environment variable
MODE
toNetease2GitHub
to sync NeteaseCloud Music profile status to GitHub. -
Set the environment variable
MODE
toKeepNeteaseStatus
to maintain the profile status of NeteaseCloud Music.
Notice that if you don't set the MODE
variable, the tool will run in GitHub2Netease
mode by default.And if you run it on GitHub Action, just add a secret called MODE
and set its value.