Wechat Capture
approvedby lyxdream
Extract the full text of WeChat Official Account articles and save them as Markdown notes. - This plugin has not been manually reviewed by Obsidian staff.
★ 1 stars↓ 350 downloadsUpdated 2mo agoMIT
Wechat Capture
Obsidian 插件:将微信公众号文章采集到笔记库。
功能
| 功能 | 说明 | 依赖 |
|---|---|---|
| 公众号全文 | 标题、作者、正文、图片 → Markdown | 无(开箱即用) |
安装
方式 A:社区插件(上架后)
在 Obsidian 设置 → 社区插件 中搜索 Wechat Capture 安装。
方式 B:手动安装
-
从 Releases 下载
main.js、manifest.json、styles.css -
复制到你的库目录:
<你的库>/.obsidian/plugins/obsidian-wechat-capture/ -
在 Obsidian 中启用插件
方式 C:开发模式(符号链接)
git clone https://github.com/lyxdream/obsidian-wechat-capture.git
cd obsidian-wechat-capture
npm install
npm run build
ln -s "$(pwd)" "<你的库>/.obsidian/plugins/obsidian-wechat-capture"
使用
- 点击左侧 Ribbon 图标,或
Cmd/Ctrl + P打开命令面板 - 选择 提取公众号文章
- 粘贴链接并开始提取
设置项
设置 → Wechat Capture
| 设置 | 默认值 | 说明 |
|---|---|---|
| 公众号笔记目录 | wechat | 文章保存位置 |
| 附件目录 | attachments | 公众号图片附件根目录 |
开发
npm install
npm run dev # 监听构建
npm run build # 生产构建
构建产物为 main.js(已在 .gitignore 中,Release 时上传)。
项目结构
obsidian-wechat-capture/
├── main.ts # 插件入口
├── manifest.json # Obsidian 插件元信息
├── styles.css
├── versions.json # 社区插件版本兼容
├── src/
│ ├── wechat.ts # 公众号提取
│ └── ...
└── .github/workflows/ # CI 构建
发布新版本
- 更新
manifest.json和package.json中的version - 更新
versions.json(Obsidian 最低版本映射) npm run build- 创建 GitHub Release,上传
main.js、manifest.json、styles.css
已知限制
- 微信公众号可能返回验证页,需先在浏览器打开链接
- 图片若在微信 CDN 已压水印,无法去除
- 仅支持 Obsidian 桌面端
许可证
致谢
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.