印象笔记官方没有提供非常方便的导出工具,而 Notion 也只提供了基于 Evernote 的导入。针对这个问题,可以使用开源工具来搞定。
安装工具
# 将印象笔记(Evernote)进行本地备份
pip install evernote-backup
# 本地 Evernote 笔记保存到 Notion
pip install enex2notion
从印象笔记导出所有笔记
# 初始化并连接印象笔记(--backend china 连接印象笔记)
evernote-backup init-db --backend china --force
# 输入用户名和密码后执行同步
evernote-backup sync
# 导出到指定目录备用
evernote-backup export ./output-dir
导入到 Notion
获取 Token
打开 Chrome 开发者工具,在 Application 中找到 token_v2 的值并复制。

执行导入
enex2notion --token {token} --done-file clip-biz-done.txt clip-biz.enex
批量导入脚本
如果笔记内容多,推荐用脚本批量处理。先安装断点续传工具:
pip install shell-retry
完整脚本 process_enex_files.sh:
#!/bin/bash
output_dir="$1"
token="$2"
# 遍历指定目录下的所有 .enex 文件
find "$output_dir" -type f -name "*.enex" -print0 | while IFS= read -r -d '' file; do
filename=$(basename "$file")
echo "$file"
# 重复30次,间隔5-30秒
shell-retry --retry-count 30 --interval-max 30 --interval-min 5 -- \
enex2notion --token "$token" --done-file "done_$filename.txt" "$file"
done
执行:
bash process_enex_files.sh {output_dir} {token}
总结
Evernote 曾是笔记类软件的王者,如今被 Notion 等更多同类软件替代难免可惜。在知识管理方面的需求始终存在,不变的是用户对更好工具的追求。
参考: