资料
- DeppWang/youdaonote-pull: 📝 一个一键导出 / 备份「有道云笔记」所有笔记的 Python 脚本。 A Python script to export/backup all the notes of the “Youdao Note”.
- 安装 Python 模块 — Python 3.9.6 文档
步骤
- clone 项目,里面包含脚本
git clone git@github.com:DeppWang/youdaonote-pull.git
cd youdaonote-pull
- macOS 使用 Homebrew 安装 Python3 环境
brew install python3 # Homebrew 安装 python3
sudo python -m ensurepip --default-pip # 安装 Python3 Package Installer
sudo pip3 install requests # 安装 requests 包,脚本依赖 requests
sudo pip3 install markdownify # 安装 markdownify,用于 html 转化为 md
- 设置脚本参数配置文件 config.json
{
"username": "your_youdaonote_username@163.com",
"password": "your_youdaonote_password",
"local_dir": "",
"ydnote_dir": "",
"smms_secret_token": ""
}
username:必填,你的有道云笔记用户名
password:必填,你的有道云笔记密码。ps:如果你记不到账号和密码,你可以参考 issue 的 cookie 登录
local_dir:选填,本地存放导出文件的文件夹,不填则默认为当前文件夹
- 运行导出脚本
python3 pull.py # macOS/Linux
python pull.py # Windows
- 把导出的压缩成 zip文件,然后网页版语雀->新建-〉导入->
其他
- 在mac下配合MWeb这个软件可以发布,作为md格式的非常nice