Skip to content

Openmd v0.3.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 09:43
· 87 commits to main since this release

新增 / Added

  • 小宇宙扫码登录:第一次保存小宇宙单集且本机没有登录时,先提示风险(“此方法有可能导致账号被风控或封号,建议使用丢了也不心疼的小号”),再在终端显示二维码,用小宇宙 App“发现”页右上角“扫一扫”确认后自动继续保存;之后令牌快过期时自动续期,长期未用失效时重新弹码。另有 openmd login xiaoyuzhou / openmd logout xiaoyuzhou,openmd doctor 显示登录状态;非交互和 MCP 调用返回二维码图片路径(qr_path、qr_expires_at),浏览器扩展可导入已在网页登录的状态。 / Xiaoyuzhou QR login: when an episode is saved without a local login, Openmd first shows a risk notice (the account may be rate-limited or banned; use a throwaway account), then prints a QR code in the terminal; scanning it with the Xiaoyuzhou app's “Scan” button continues the save. Tokens refresh before they expire, and a long-idle login prompts a new scan. openmd login xiaoyuzhou / openmd logout xiaoyuzhou are available, openmd doctor shows the login state, non-interactive and MCP calls return the QR image path (qr_path, qr_expires_at), and the browser extension can import an existing web login.
  • X 帖子无需登录:依次尝试 X 官方内嵌接口、FxEmbed 公开接口,最后才用浏览器扩展;长推文与 X Article 取全文,标题取帖子本身而不是“作者:正文前几十字”。 / X posts without logging in: Openmd tries X's official embed endpoint, then the public FxEmbed API, and only then the browser extension; long posts and X Articles come out in full, and titles come from the post itself instead of “author: first words”.
  • 本地语音模型首次使用时询问:需要转写而本机没有模型时,说明模型、大小和存放目录,确认后带进度下载并可断点续传,下载前先给 HuggingFace、hf-mirror、ModelScope 测速,从最快的开始,失败再换下一个(同一文件,按 SHA256 校验),下完继续当前任务;非交互调用只返回安装命令。openmd models install 现在真的下载(--dry-run 只看计划)。电脑上已有的 faster-whisper 模型会被识别,未经 Openmd 评测的模型也能直接使用并在回执中注明。 / Local speech models are offered on first use: when transcription needs a model that is missing, Openmd names the model, its size and target folder, downloads with progress and resume after you confirm, measures HuggingFace, hf-mirror and ModelScope first and starts with the fastest, moving on when one fails (same file, SHA256-checked), and continues the task; non-interactive calls only return the install command. openmd models install now downloads (--dry-run shows the plan). Existing faster-whisper models on the machine are detected, and models Openmd has not evaluated can be used and are marked as such in the receipt.
  • 网页正文抽取在首次使用时自动安装 Defuddle(npm 固定版本,随包 Node,可用 OPENMD_NPM_REGISTRY 指定镜像,OPENMD_AUTO_INSTALL_TOOLS=0 关闭);装不上时回到内置抽取。 / Web extraction installs Defuddle on first use (a pinned npm version run by the bundled Node; set OPENMD_NPM_REGISTRY for a mirror, OPENMD_AUTO_INSTALL_TOOLS=0 to opt out) and falls back to the built-in extractor if the install fails.
  • Windows 一条命令安装:scripts/install.ps1 下载固定版本并校验 SHA256 的 uv(GitHub 不通时改从清华、阿里 PyPI 镜像取同一版本,同样校验),不需要预装 Python,装好 openmd-cli[all] 和浏览器原生宿主,把命令目录写进用户 PATH(新开的终端直接能用 openmd),并输出能力自检;PyPI 不通时依次换清华、阿里镜像;不在安装时下载语音模型。 / One-command Windows install: scripts/install.ps1 fetches a pinned, SHA256-checked uv (the same release from the Tsinghua or Aliyun PyPI mirror when GitHub is unreachable, also checked), needs no preinstalled Python, installs openmd-cli[all] and the browser native host, adds the command folder to the user PATH so a new terminal finds openmd, and prints a capability check; it falls back to the Tsinghua and Aliyun mirrors when PyPI is unreachable and does not download speech models.
  • openmd update 按原来的安装方式(uv、pipx 或 pip)升级并保留可选组件;openmd uninstall 先列出将删除与保留的内容,默认只删程序、托管工具、浏览器宿主、右键菜单和安装时加的 PATH 项,保留数据、配置、登录状态和模型(删数据需 --purge-data 并输入确认句);Windows 上程序在 Openmd 退出后几秒内删除。openmd --version 显示版本。 / openmd update upgrades with the original installer (uv, pipx or pip) and keeps the chosen extras; openmd uninstall first lists what goes and what stays, removes only the program, managed tools, the browser host, the context menu and the PATH entry added at install by default, and keeps data, settings, logins and models (--purge-data with a typed confirmation removes data); on Windows the program is removed a few seconds after Openmd exits. openmd --version prints the version.
  • 新的 proxy 可选组件(已含在 [all])提供 SOCKS 代理支持,开代理时不再出现缺少 PySocks 的警告。 / A new proxy extra (included in [all]) adds SOCKS proxy support, so the missing-PySocks warning no longer appears behind a proxy.
  • 新增公开实测报告 docs/benchmarks/2026-11-new-user-results.md,所有 Openmd 分数来自新用户环境,落后项一并列出。 / A public benchmark report, docs/benchmarks/2026-11-new-user-results.md, lists Openmd scores measured only in a new-user environment, including where it falls behind.

改进 / Changed

  • 公众号文章先用本地方式读取,常见文章从约 95 秒缩短到 5–20 秒;读不到或遇到验证页时再交给浏览器扩展。 / WeChat articles are read locally first, cutting typical saves from about 95 s to 5–20 s; the browser extension is used only when that fails or a verification page appears.
  • 原生文字 PDF 明显变快:隐藏文字检查先用矢量信息判断、只对有歧义的字做像素检查,每页的像素图只读取一次;同环境 13 篇论文平均 43 s → 18 s,最慢一篇 179 s → 46 s,输出逐字节不变,防注入规则不变。 / Native-text PDFs are much faster: the hidden-text check decides most glyphs from vector evidence, renders pixels only for ambiguous ones and reads each page raster once; on 13 papers in the same environment the average drops from 43 s to 18 s (the slowest from 179 s to 46 s) with byte-identical output and unchanged injection protection.
  • 英文网页更完整、更稳:Defuddle 与 trafilatura 共用一次取页,超时、断连和 5xx 时在代理与直连之间有限重试,限流页、登录页、错误页不再当正文;全部失败时回执写明每条路线的原因。RFC Editor 文档改取官方纯文本全文(保留章节和 ABNF 代码块),arXiv 摘要页改取 HTML 全文并保留论文元数据。同一新用户环境下 13 个英文网页样本:Openmd 81/104、Defuddle 80、MarkItDown 92(但混入 13 处噪音)。 / English web pages are more complete and more reliable: Defuddle and trafilatura share one fetch, timeouts, resets and 5xx are retried a bounded number of times across proxy and direct connections, and rate-limit, login and error pages are no longer saved as content; when every route fails the receipt names each route's reason. RFC Editor documents now use the official full plain text (sections and ABNF blocks kept), and arXiv abstract pages read the HTML full text with the paper metadata. On 13 English web samples in the same new-user environment: Openmd 81/104, Defuddle 80, MarkItDown 92 (with 13 noise hits).
  • openmd doctor 在只装了 asr:baseline 时显示语音转写可用,GPU 加速是否齐全另行列出。 / openmd doctor reports transcription as usable with only asr:baseline installed, and lists the full GPU setup separately.
  • 模型、GPU 锁和隔离运行时目录都跟随 OPENMD_DATA_DIR(OPENMD_RUNTIME_DIR 仍可单独指定)。 / Models, the GPU lock and isolated runtime folders follow OPENMD_DATA_DIR (OPENMD_RUNTIME_DIR can still be set separately).
  • 维护者自备的 xyz-dl、yutto 下载器不再出现在公开路由中;B 站和小宇宙分别由字幕路线、yt-dlp 与扫码登录覆盖。 / The maintainer-only xyz-dl and yutto downloaders are no longer part of the public routes; Bilibili and Xiaoyuzhou are covered by subtitle routes, yt-dlp and QR login.

修复 / Fixed

  • 小鹅通课程未登录时不再把“验证码登录 / 拖动拼图”页当正文保存,改为拒收并提示先在浏览器登录、打开课程页再点扩展。 / Xiaoe-tech courses no longer save the “verification-code login / drag the puzzle” page as content when you are logged out; Openmd refuses it and tells you to log in, open the course page and click the extension.
  • 小红书命令行读取最长等待由 15 分钟降到约 60 秒,缺少分享参数的链接立即提示“在浏览器打开笔记再点扩展,或从分享按钮复制完整链接”,超时后关闭本次打开的后台标签;Agent 可把已加载的笔记页交给 --as-snapshot。 / Xiaohongshu CLI reads now give up after about 60 s instead of 15 minutes; links without share parameters immediately suggest opening the note in the browser and clicking the extension (or copying the full share link), timed-out runs close the background tab they opened, and agents can pass a loaded note page to --as-snapshot.
  • 语音转写在装好模型后仍失败的问题:新安装会带上与 faster-whisper 不兼容的 PyAV 19(现限定 av<19),且只装了 large-v3-turbo 时回退路线仍要求未安装的 large-v3(现改用已装模型)。 / Transcription failed even after the model was installed: fresh installs pulled PyAV 19, which faster-whisper cannot use (now av<19), and with only large-v3-turbo installed a fallback still asked for the missing large-v3 (it now uses the installed model).
  • 卸载在 Windows 上留下程序:清理进程会随 uv 启动器一起被结束;现在由系统另起进程,在 Openmd 退出后完成删除。openmd update / uninstall 在新开的终端里找不到 uv 工具目录的问题一并修复。 / Uninstall left the program behind on Windows because the cleanup process ended with uv's launcher; it now runs as a separate system process after Openmd exits. openmd update / uninstall in a new terminal also find uv's tool folder again.
  • 文件损坏或没下载完(如 EPUB)时提示重新下载,问题反馈信息写明“本地文件 .epub”而不是“平台 pdf”;抖音等失败的 JSON 回执带上与命令行相同的下一步。 / Damaged or incomplete files (such as an EPUB) now suggest re-downloading, the issue line names the local file type instead of “platform pdf”, and JSON receipts for failures such as Douyin carry the same next step as the command line.
  • OpenCLI 读取成功后关闭标签时的提示不再把已取得的正文判为失败。 / A tab-cleanup warning after a successful OpenCLI read no longer turns the captured content into a failure.

更新 / 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.0-py3-none-any.whl 支持 / Supported:openmd-extension-0.3.0.zip,解压后在 chrome://extensions 开发者模式加载 / unzip and Load unpacked
macOS openmd_cli-0.3.0-py3-none-any.whl 暂不支持浏览器扩展,CLI 可用 / Extension unavailable; CLI supported
Linux openmd_cli-0.3.0-py3-none-any.whl 暂不支持浏览器扩展,CLI 可用 / Extension unavailable; CLI supported