| name | yinxiang-notes |
| name_en | evernote-integration |
| description | 印象笔记(中国版)集成技能。使用 Developer Token 在印象笔记中创建、整理和搜索笔记。支持笔记本列表、创建笔记、更新笔记内容/标签、删除笔记、搜索内容、增量同步到 Obsidian vault。 |
| description_en | Evernote (China version) integration skill. Create, organize, and search notes using Developer Token. Supports notebook listing, note creation, content/tag updates, trash management, search, and incremental sync to Obsidian vault. |
| version | 1 |
| author | 度量衡智库 |
| author_en | Duliangheng Think Tank |
| category | productivity |
| category_en | Productivity Tools |
印象笔记集成
快速开始
前置条件
- Developer Token:从 https://app.yinxiang.com/api/DeveloperToken.action 获取
- Python 环境:需要 Python 3.7+
- SDK 安装:
pip install evernote3 thrift html2text
配置
在 .env 文件中设置:
EVERNOTE_TOKEN=S=s16:U=xxx:E=xxx:C=xxx:P=xxx:A=en-devtoken:V=2:H=xxx
EVERNOTE_NOTESTORE_URL=https://app.yinxiang.com/shard/s16/notestore
核心功能
1. 获取笔记本列表
python skills/yinxiang-notes/scripts/list_notebooks.py
python skills/yinxiang-notes/scripts/list_notebooks.py --verbose
2. 获取标签列表
python skills/yinxiang-notes/scripts/list_tags.py
3. 创建笔记
python skills/yinxiang-notes/scripts/create_note.py --title "标题" --content "<en-note>内容</en-note>"
python skills/yinxiang-notes/scripts/create_note.py --title "标题" --content "<en-note>内容</en-note>" --notebook "笔记本名"
python skills/yinxiang-notes/scripts/create_note.py --title "标题" --content "<en-note>内容</en-note>" --tags "标签1,标签2"
ENML 格式说明:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd">
<en-note>
笔记内容...
<en-todo checked="false">待办事项</en-todo>
</en-note>