Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bubao/xmly
喜马拉雅音频下载连接,适用于aria2批量下载
https://github.com/bubao/xmly
Last synced: 7 days ago
JSON representation
喜马拉雅音频下载连接,适用于aria2批量下载
- Host: GitHub
- URL: https://github.com/bubao/xmly
- Owner: bubao
- Created: 2018-07-12T10:30:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-01T14:05:10.000Z (over 3 years ago)
- Last Synced: 2023-11-13T19:26:26.653Z (about 1 year ago)
- Language: JavaScript
- Size: 25.4 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
喜马拉雅API,可以获得音频下载链接
## 使用
### 安装
```sh
$npm i
```### Demo
喜马拉雅音频下载连接,适用于aria2批量下载
```sh
$vim test/index.js
``````js
let xmly = require("../src/index")
let fs = require("fs");
// (async () => fs.writeFileSync("Z:\\xmly/list.txt", await xmly.DownAlbums(1000341)))();
(async () => fs.writeFileSync("Z:\\xmly/list.txt", await xmly.DownTracks(14129954)))();
```### API
提供以下api
- tracks(albumId),
- albums(uid,pageSize=30),
- DownAlbums(uid),
- DownTracks(albumId),
- aria2c(array,dir="./")### 运行
```sh
$npm run test
```### aria2 批量下载
使用aria2c下载list中的资源。
```sh
$aria2c -c --input-file=list.txt
```