This python project is design for convert the ncm file to the mp3 file automatically based on existing ncm dump tools such as:
anonymous5l/ncmdump ncmdump.go
- clone the project
- install dependencies
poetry install
- run the
ncmrobot.py
The script will create the user_config.yml
in the root folder, if you folder 网易云音乐
is default like: /Users/YOUR_USER_NAME/Music/网易云音乐
. You do not need to edit this config file.
In first time, it will convert all ncm
in the folder and save the late timestamp, so next time it will only convert the music which is saved later than the saved timestamp.
If you have converted the previous ncm files, you can create the user_config.yml
manually:
File Name: user_config.yml
folder: /Users/YOUR_USER_NAME/Music/网易云音乐
last_timestamp: check your last ncm have been converted and convert it to nuix timestamp
https://www.epochconverter.com/
We download ncm everyday, and if we use these tools directly, we need to convert these ncm file directly. So this tool will help to convert the files easier.
User only need one line command and convert all new downloaded ncm music.
- Setup the NetEase Music Folder such as the default:
/Users/YOUR_USER_NAME/Music/网易云音乐
- Initial list all the ncm file in the folder and start to convert the files to mp3 automatically.
- Remember the latest music time stamp.
- Next time run the command, check the last
latest music time stamp
and only convert the file newer than the timestamp. If cannot find it, just convert all ncm files. Then Update the lasted time stamp. - Add Automatically task to run the command every days or just manually run it when you finish to download the ncm music or prepare to copy the mp3 to your devices.
- how to run the command line
- how to list file with specific file name and filter out by time stamp
- how to read/write time stamp to file
- how to compile python to execute file
https://www.zhihu.com/question/266369267 http://www.bewindoweb.com/228.html https://github.com/yoki123/ncmdump https://github.com/anonymous5l/ncmdump https://www.yanghuaxing.com/blog/107.html