Xuetangxd
This project is a downloader for next.xuetangx.com.
Usage
yarn global add @ritou11/xuetangxd
ornpm i -g @ritou11/xuetangxd
- Add a config file
~/.xuetangxd
in the following format:{ "username": "<Username>", ["rsaPassword": "<Password hashed by RSA>",] ["password": "<Clear text password>",] }
- rsaPassword could be got by providing the clear text password and
xuetangxd dryrun
.
- Command format:
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>
and<sign>
is from the link of the course, which followshttps://next.xuetangx.com/course/<sign>/<cid>
.