用 Rust 写了一个批量下载网易云音乐 MV, MP3 的程序,包括协议的加密解密,欢迎各位拍砖

2018-05-31 23:03:30 +08:00
 chrislon

Repo: https://github.com/lonnng/yinyue

网易云音乐批量下载,支持下载 mp3 和 mv,支持歌单,专辑,歌手热门,电台,单曲,排行榜.

- http://music.163.com/playlist?id=892177597
- http://music.163.com/#/album?id=38595209"
- http://music.163.com/#/song?id=557584888
- http://music.163.com/#/artist?id=10559"
- http://music.163.com/#/discover/toplist?id=3779629
- http://music.163.com/#/djradio?id=527162580

Build

cargo build --release

Usage

Usage: target/release/yinyue [options] url

Options:
    -t, --type          mp3 or mv
    -f, --format        filename format($name, $artist, $album)
    -q, --quality       quality(480/720/1080 for mv, 12800/19200/32000 for
                        music)
    -d, --dir           save to target directory

参数解释

    -t, --type
      需要下载的类型,可选 mp3 或者 mv
      
    -f, --format
      保存文件的格式,$name: 歌名, $artist: 歌手名, $album: 专辑名),默认为$artist - $name
      
    -q, --quality
      下载多媒体质量,音频可选: 12800/19200/32000(单位比特率), 视频可选 480/720/1080(P)
      
    -d, --dir
      文件保存路径,如果路径不存在,会自动创建,默认为 music

Example

yinyue -t mv http://music.163.com/playlist?id=892177597
5471 次点击
所在节点    Rust
21 条回复
YongXMan
2018-09-24 08:45:14 +08:00
是不是不能用了?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/459403

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX