新增 / Added
- 知乎支持保存回答、专栏文章、问题页、想法与收藏夹:问题页默认保存问题与全部回答(回答较多时设时间与数量上限,未取全标为 partial 并注明已取数量/总数);优先通过托管 OpenCLI 的知乎命令读取(内置补丁),读不到时改用已登录浏览器(Kaze);拒收错误页与不存在页;未登录时专栏可直接读取、问题页提示登录;标题自动去掉标签页未读计数(如“(10 封私信 80 条消息)”)与“ - 知乎”后缀,“知乎直答”自动链接还原为纯文字。实测问题页回答 62/62 与页面一致,专栏经后台路线验证通过,想法与收藏夹由浏览器兜底。 / Zhihu support for answers, column articles, question pages, pins, and collections: question pages save the question and all answers by default (with time and count guards for large threads, marking incomplete captures partial with captured/total counts); reads use managed OpenCLI Zhihu commands (with built-in patches) first and fall back to a signed-in browser (Kaze); error and missing pages are rejected; column articles read without login while question pages prompt for login; saved titles strip tab unread counters (such as “(10 封私信 80 条消息)”) and the “ - 知乎” suffix, and auto-inserted “知乎直答” entity links are restored to plain text. In testing, a question page matched all 62/62 answers, column articles passed via the background route, and pins/collections were covered by the browser fallback.
- 右键菜单新增音频与视频支持(MP3、MP4 及本地音视频路线支持的格式):在源文件旁生成同名
.md 逐字稿(保留原话,不总结不润色),使用与 openmd go 相同的本机转写;缺少语音模型时沿用首次使用询问,内存不足时给出提示;实测英文 MP4 约 20 秒、中文 MP3 约 4 分钟。 / The right-click menu now supports audio and video files (MP3, MP4, and other formats supported by the local media route), creating a neighboring .md verbatim transcript (original words only, no summary or polishing) through the same local transcription as openmd go, reusing the first-use prompt when no speech model is installed and warning on low memory; measured at about 20 s for an English MP4 and about 4 minutes for a Chinese MP3.
- 无头 Linux 与服务器 Agent 支持:未检测到图形界面(无
DISPLAY / WAYLAND_DISPLAY)时自动识别并跳过需要浏览器的路线,不再安装或启动 OpenCLI 后台进程,openmd doctor 会标出 headless;在 --json、--yes、batch、MCP 或无终端环境下整次调用不提问、不等待扫码,缺少组件时立即失败并在 JSON 回执的 missing 中列出缺失项(如 yt-dlp、asr:baseline、ocr:chain)、在 next_action 中给出安装步骤(桌面右键菜单的图形窗口仍正常弹出确认)。在无浏览器的 Ubuntu 上实测:公众号与 X 约 17–23 秒正常成功;基础安装下 B 站约 20 秒内结束并提示安装 openmd-cli[media](此前耗时 94 秒失败并提示安装 Windows 浏览器插件);本地音视频或图片缺模型时 1 秒内返回安装指引;小宇宙返回需要登录及二维码图片路径而不卡住。 / Headless Linux and server agent support: when no GUI session (DISPLAY / WAYLAND_DISPLAY) is present, Openmd detects the headless environment, skips browser-dependent routes, avoids installing or launching the OpenCLI background process, and reports headless in openmd doctor; under --json, --yes, batch, MCP, or non-TTY execution, the entire run never prompts or waits for QR scans, failing immediately with missing items in missing (such as yt-dlp, asr:baseline, ocr:chain) and install steps in next_action (the desktop right-click menu dialog still prompts as before). Measured on headless Ubuntu without a browser: WeChat and X succeeded in about 17–23 s; Bilibili on a base install exited within about 20 s advising openmd-cli[media] (previously failing after 94 s with a Windows browser-extension prompt); local media/images with missing models returned install guidance within 1 s; and Xiaoyuzhou returned login-required with the QR image path without hanging.
- X 帖子 frontmatter 新增调研字段:
author_handle、published_at(完整时间戳,同时保留原 published 日期)、views、likes、reposts、replies、bookmarks(取不到的字段省略,不填 0)、结构化 quote(含链接、作者、@、时间与正文)、thread(作者连续帖列表)、thread_count 与 thread_coverage(无法获取下游回复时如实标注);正文中连续帖按顺序分节,引用帖保留为引用块。 / Added research metadata fields to X post frontmatter: author_handle, published_at (full timestamp alongside the existing published date), views, likes, reposts, replies, bookmarks (omitted rather than set to 0 when unavailable), structured quote (url, author, handle, time, text), thread (list of the author's thread posts), thread_count, and thread_coverage (reported accurately when downstream replies are unavailable); thread posts appear in order as sections in the body, and quoted posts are kept as blockquotes.
改进 / Changed
- 虚拟滚动页面不再只保存首屏:对只渲染屏幕附近内容的长列表和长文阅读器,扩展与 Kaze 现共用同一份采集脚本自动滚动采集、按编号去重并在完成后恢复原滚动位置,不点击任何“加载更多”,并受步数与时间上限(最多约 90 秒)约束;实测某阅读器长文完整取得 107/107 段、字数比 0.998,同分类 31 篇中 29 篇字数比在 0.95–1.05 之间。 / Virtual-scrolling pages are no longer limited to the initial viewport: for long lists and long-form readers that only render content near the screen, the extension and Kaze now share one capture script that scrolls automatically, deduplicates by item index, restores the original scroll position afterward, never clicks “Load more”, and stops within step and time limits (up to about 90 s); in testing, a long reader article captured all 107/107 paragraphs with a 0.998 character ratio, and 29 of 31 articles in the same category fell within a 0.95–1.05 character ratio.
- 完整度报告改为如实标注:仅取得部分内容时一律标为
partial,缺乏证据时标为 unknown,不再误报“完整”;frontmatter 的 coverage 明确标注 full_page、scrolled_full 或 visible_only;只存下屏幕可见部分时,无论是否开启问题包,扩展图标都会显示“!”并提示“只保存了屏幕上的部分(约 X/Y)”。 / Completeness reporting is now strictly factual: partial captures are always marked partial and captures without evidence are marked unknown rather than reported as complete; frontmatter coverage specifies full_page, scrolled_full, or visible_only; when only the visible portion is saved, the extension badge shows “!” and notifies “只保存了屏幕上的部分(约 X/Y)” regardless of whether feedback packages are enabled.
- AI 对话页(豆包、Gemini、千问、元宝、Grok、DeepSeek、ChatGPT)按页面原样保存,检测到长对话仅渲染部分内容时如实标为只保存了可见部分;支持识别豆包新版“深度思考”区块并默认省略与计数。 / AI chat pages (Doubao, Gemini, Qwen, Yuanbao, Grok, DeepSeek, ChatGPT) are saved as rendered on the page, and long conversations that only render part of the thread are accurately marked as visible-only; Doubao's updated “Deep Thinking” block is now recognized, omitted by default, and counted.
- 小红书后台读取最长等待时间由约 60 秒缩短至约 20 秒,读不到时自动改用已登录浏览器(Kaze)快照(实测 3 条带分享参数的链接在 15–20 秒内取得正文,图片 OCR 仍需开启媒体下载);微信公众号遇到“环境异常”验证页时也会自动改用已登录浏览器。 / Xiaohongshu background reads now wait up to about 20 s instead of about 60 s and automatically fall back to a signed-in browser (Kaze) snapshot when that fails (3 test links with share parameters captured body text in 15–20 s; image OCR still requires media download enabled); WeChat Official Account articles encountering the “环境异常” verification screen also fall back to a signed-in browser.
- 小宇宙改为联网路线(令牌登录,无需浏览器),在无头服务器上同样可用。 / Xiaoyuzhou now uses a direct network route with token login (no browser required), making it usable on headless servers as well.
- 小鹅通音视频逐字稿与
.openmd 内容包统一为可读排版,时间戳独立成段。 / Xiaoe-tech audio/video transcripts and .openmd packages now share a readable layout with timestamps on their own paragraphs.
- 单页应用使用通用标签页标题(所有页面同名)时,改为取页面中唯一的
h1 作为保存标题。 / Single-page apps that reuse a generic tab title across pages now fall back to the page's unique h1 as the saved title.
- Kaze 截取页面前会等待内容稳定,不再在单页应用只渲染出导航栏时提前截取。 / Kaze now waits for page content to settle before capturing, avoiding premature captures when a single-page app has only rendered its navigation.
修复 / Fixed
- 修复
openmd batch 的 JSON 汇总 status 始终为 failed 的问题:现按结果分别报告 verified(全部成功)、partial(部分成功)或 failed(全部失败)。 / Fixed openmd batch JSON summary status always reporting failed; it now reports verified when all items succeed, partial when some succeed, and failed when all fail.
- 修复自管 Defuddle 在缺少本地配置时失效、导致扩展后台、Kaze 回退及新用户环境下网页正文抽取退化为简易抽取的问题。 / Fixed managed Defuddle failing without local configuration, which previously caused web article extraction in the extension background, Kaze fallback, and new-user environments to degrade to basic extraction.
- 移除 B 站未签名字幕接口的回退,避免返回其他视频的错误字幕。 / Removed the unsigned Bilibili subtitle API fallback, which could return subtitles from a different video.
- 修复同步清单在 Windows 上偶发因文件被占用导致的并发写入失败,改为有限次重试。 / Fixed intermittent concurrent write failures (file-in-use errors) on the sync manifest on Windows by adding bounded retries.
更新 / Update
pip install -U openmd-cli
openmd browser-setup # 仅 Windows:更新后重跑,同步扩展 / Windows only: rerun to sync extension
下载 / Download
| 系统 / OS |
CLI(Python 3.10+) |
浏览器扩展 / Browser extension |
| Windows |
openmd_cli-0.3.2-py3-none-any.whl |
支持 / Supported:openmd-extension-0.3.2.zip,解压后在 chrome://extensions 开发者模式加载 / unzip and Load unpacked |
| macOS |
openmd_cli-0.3.2-py3-none-any.whl |
暂不支持浏览器扩展,CLI 可用 / Extension unavailable; CLI supported |
| Linux |
openmd_cli-0.3.2-py3-none-any.whl |
暂不支持浏览器扩展,CLI 可用 / Extension unavailable; CLI supported |