/yuque-dl

yueque 语雀知识库下载

Primary LanguageTypeScript

yuque-dl

语雀知识库下载为本地markdown

header

Install

npm i -g yuque-dl

Usage

$ 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

Start

# url 为对应需要的知识库地址
yuque-dl "https://www.yuque.com/yuque/thyzgp"

Example

demo

私有知识库

通过别人私有知识库 分享的链接,需使用-t添加token才能下载

yuque-dl "https://www.yuque.com/yuque/thyzgp" -t "abcd..."

token的获取请看

Feature

  • 支持下载中断继续
  • 支持图片下载本地
  • 支持下载分享私有的知识库

Tips

由于网络波动下载失败的,重新运行即可,已下载的进度不会受到影响