https://github.com/heqin-zhu/music-recover
:musical_note: 缓存文件转换为 MP3 文件
https://github.com/heqin-zhu/music-recover
crawler mp3 python regex
Last synced: 4 months ago
JSON representation
:musical_note: 缓存文件转换为 MP3 文件
- Host: GitHub
- URL: https://github.com/heqin-zhu/music-recover
- Owner: heqin-zhu
- License: mit
- Created: 2018-01-27T06:48:10.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T21:52:48.000Z (over 2 years ago)
- Last Synced: 2024-08-07T23:46:06.007Z (about 1 year ago)
- Topics: crawler, mp3, python, regex
- Language: Python
- Homepage:
- Size: 23.9 MB
- Stars: 412
- Watchers: 13
- Forks: 119
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- my-awesome - heqin-zhu/music-recover - 05 star:0.4k fork:0.1k :musical_note: 缓存文件转换为 MP3 文件 (Python)
README
music-recover
[](https://github.com/mbinary/music-recover/stargazers)
[](https://github.com/mbinary/music-recover/network/members)
[](LICENSE)
[](https://github.com/mbinary/music-recover/graphs/contributors)
[](.)
[](https://codecov.io/github/mbinary/music-recover?branch=master)
[](https://codebeat.co/projects/github-com-mbinary-music-recover-master)
# 声明

代码仅供技术交流,参考学习,请尊重版权,勿用于商业及非法用途,如产生法律纠纷与本人无关
## 介绍
将缓存文件转换为 mp3 文件。这是[详细介绍](https://mbinary.xyz/decrypt-netease-music.html)
## 依赖
* python3.5+
* python 模块
- requests
- mutagen
运行命令安装
```shell
$ pip3 install -r requirements.txt
```
## 使用

- 如果要获得电脑上的缓存文件,那么可以不传入参数直接运行这个脚本`python3 decrypt.py`
- 如果是手机上的(`一般是netease/cloudmusic[lite]/Cache/Music1`, 将其拷贝到电脑上),**或者上面情况出现没有找到文件夹,没有文件等错误**,那么需要指定缓存文件的位置作为参数运行(可以将缓存文件夹拷贝到当前目录重命名music, 然后运行`python3 decrypt.py music`)。
- 已上传示例文件,可运行`python3 decrypt.py music` 进行尝试
- 结果保存在当前目录下的`mp3`中:smiley: