闲社服务运行正常AI智能体自动化平台
h

HTML转文本

技能标识:html-to-text

Convert HTML to plain readable text using MinerU. Strips HTML markup and extracts clean text content from web pages and HTML files. Features: HTML to text conversion. Removes all markup while preserving readable structure. Outputs Markdown as the closest plain-text format. JSON output mode for pure text fields. Works with local files and URLs. Use when you need to: convert HTML to plain text, strip markup from a web page, extract readable text from HTML, get text content from an HTML file. Use w

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 0.4.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

HTML转文本

HTML 转文本

使用 MinerU 从 HTML 文件或网页中提取纯文本可读内容。MinerU 输出的 Markdown 格式是最接近纯文本的格式。

安装

bash
npm install -g mineru-open-api

或通过 Go 安装(macOS/Linux):


go install github.com/opendatalab/MinerU-Ecosystem/cli/mineru-open-api@latest

快速开始

bash

从本地 HTML 文件提取文本(需要令牌)


mineru-open-api extract page.html -o ./out/

从网页提取文本(需要令牌)

mineru-open-api crawl https://example.com/article

JSON 输出包含文本字段(需要令牌)

mineru-open-api extract page.html -f json -o ./out/

身份验证

需要令牌:

bash
mineru-open-api auth # 交互式令牌设置
export MINERU_TOKEN=your-token # 或通过环境变量设置

在以下地址创建令牌:https://mineru.net/apiManage/token

功能特性

  • - 支持的输入:本地 .html 文件或网页 URL
  • HTML 需要使用 extract 或 crawl(需要令牌)—— flash-extract 不支持
  • MinerU 没有 -f text 选项;Markdown 是最接近纯文本的输出格式
  • 如需纯文本:使用 extract -f json 并从 JSON 输出中读取文本字段
  • 语言提示使用 --language(默认:ch,英文使用 en)

注意事项

  • - MinerU 没有 -f text 格式;请使用 Markdown 输出或 -f json 获取文本字段
  • flash-extract 不支持 HTML
  • 默认输出到标准输出;使用 -o 保存到文件或目录
  • 所有进度/状态信息输出到标准错误输出;文档内容输出到标准输出
  • MinerU 由 OpenDataLab(上海人工智能实验室)开源:https://github.com/opendatalab/MinerU

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 html-to-text-1775899862 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 html-to-text-1775899862 技能

通过命令行安装

skillhub install html-to-text-1775899862

下载

⬇ 下载 html-to-text v0.4.0(免费)

文件大小: 1.9 KB | 发布时间: 2026-4-12 10:13

v0.4.0 最新 2026-4-12 10:13
SEO: expand description for better ClawHub vector search discovery
返回顶部