网易云音乐 歌单 下载器
发布于 9 年前 作者 magicdawn 9035 次浏览 最后一次编辑是 8 年前 来自 分享

云音乐下载的ID3信息比较完整,业界良心。方便自己导入iPod https://github.com/magicdawn/yun-playlist-downloader

安装

via 万能的npm, iojs required

$ npm i yun-playlist-downloader -g

使用

$ yun

  网易云音乐 歌单 下载器

  使用:
    yun [选项] <歌单地址>

  示例:
    # 20首同时下载
    yun -c 20 http://music.163.com/#/playlist?id=12583200

  选项:
    -h,--help           查看帮助
    -c,--concurrency    设置同时下载数量

截图

12 回复

还可以更智能

@i5ting 什么更智能

网易音乐客户端软件本身就提供了下载功能吧

下载的音乐是无损格式的吗?

@sioncheng

要是能一个歌单一个文件夹就好了!

@youqingkui

不是吧,跟在网页上听的是一个文件。 在网页上是

  1. 播放
  2. 拿到歌曲id
  3. ajax http://music.163.com/api/song/detail/?ids=[id1,id2,…idn]
  4. 返回数据里面有歌曲链接,肯定不是无损的吧

http://music.163.com/api/song/detail/?ids=[5244704]

在网页上播放的肯定都是适应带宽,文件比较小,高音质的怎么获取我还不知道。

安装的node版本需要1.00以上? npm WARN engine yun-playlist-downloader@0.0.1: wanted: {“node”:">1.0.0"} (current: {“node”:“0.12.4”,“npm”:“2.10.1”})

@youqingkui

用了template string, 上面写了iojs required

@magicdawn 这样有点麻烦,直接使用node就好吧。

@youqingkui

最关键的是我要用 generator co 呀 shebang 写 #!/usr/bin/env node --harmony略诡异,还不能用

https://github.com/olov/node-harmony-wrapper

For a program that needs --harmony, such as hello-es6.js, things get complicated. In the best of worlds you would have been able to just change the shebang into #!/usr/bin/env node --harmony and things would have worked. And it does, on Mac. But it does not on Linux. Because POSIX never specified shebang arguments. Oh Candide! :(

更新v0.1.0 网易换了mp3地址加载规则, 一坨aes rsa加密啥的~ 然而我发现页面里有一坨有卵用的json, 就是下载需要的数据~就酱紫~

回到顶部