Skip to content

ritou11/xuetangxd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

学堂在线视频下载

npm npm GitHub last commit GitHub code size in bytes license

Author: Nogeek

Email: ritou11@gmail.com

使用方法

  1. yarn global add @ritou11/xuetangxd or npm i -g @ritou11/xuetangxd

  2. 默认配置文件 ~/.xuetangxd,格式如下:<说明 | 默认值> [可选]

    {
        "username": "<Username>",
        ["rsaPassword": "<Password hashed by RSA>",]
        ["password": "<Clear text password>",]
    }
    
  • 其中rsaPassword可在输入明文密码后使用xuetangxd dryrun查看。
  1. 命令说明:
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]
  1. <cid><sign>从课程链接中获取,格式为https://next.xuetangx.com/course/<sign>/<cid>.

TODO

  1. 课程代码从课程链接中解析
  2. 导出aria2格式的课程视频下载种子
  3. 完善异常处理

协议

MIT

About

Downloader for next.xuetangx.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published