语雀知识库下载为本地markdown
npm i -g yuque-dl
$ yuque-dl --help
Usage:
$ yuque-dl <url>
Commands:
<url> 语雀知识库url
For more info, run any command with the `--help` flag:
$ yuque-dl --help
Options:
-d, --distDir <dir> 下载的目录 eg: -d download (default: download)
-i, --ignoreImg 忽略图片不下载 (default: false)
-t, --token <token> 语雀的cookie "_yuque_session (default: )
-h, --help Display this message
-v, --version Display version number
# url 为对应需要的知识库地址
yuque-dl "https://www.yuque.com/yuque/thyzgp"
通过别人私有知识库 分享的链接,需使用-t
添加token才能下载
yuque-dl "https://www.yuque.com/yuque/thyzgp" -t "abcd..."
- 支持下载中断继续
- 支持图片下载本地
- 支持下载分享私有的知识库
由于网络波动下载失败的,重新运行即可,已下载的进度不会受到影响