Author: Nogeek
Email: ritou11@gmail.com
-
yarn global add @ritou11/xuetangxd
ornpm i -g @ritou11/xuetangxd
-
默认配置文件
~/.xuetangxd
,格式如下:<说明 | 默认值> [可选]
{ "username": "<Username>", ["rsaPassword": "<Password hashed by RSA>",] ["password": "<Clear text password>",] }
- 其中rsaPassword可在输入明文密码后使用
xuetangxd dryrun
查看。
- 命令说明:
xuetangxd [command]
Commands:
xuetangxd dryrun show the info & donnot execute
xuetangxd prepare [<cid>] [<sign>] prepare the course cache file
xuetangxd fetch fetch the course videos
xuetangxd down [<cid>] [<sign>] get the course video links
Options:
--version Show version number [boolean]
-c, --config-file Json file that contains username, md5_password and other
infomation. [string] [default: "~/.xuetangxd"]
-u, --username Username of your account. [string]
-p, --password Plaintext password of your account. [string]
-m, --rsa-password RSA password of your account. [string]
-f, --cache-file Use specified cache file to start [string]
-o, --output-file output cache file to the path [string]
-q, --quality High quality or not [boolean]
--help Show help [boolean]
<cid>
和<sign>
从课程链接中获取,格式为https://next.xuetangx.com/course/<sign>/<cid>
.
- 课程代码从课程链接中解析
- 导出aria2格式的课程视频下载种子
- 完善异常处理
MIT