Back to catalog

uckkk /

dsh-html-parse

Verified

HTML 解析:提取标题/meta/标题层级/链接/表格/纯文本等结构化数据

0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
READMESource: main@69fc2c53

dsh-html-parse · HTML 解析

从 HTML 文件/字符串提取标题、meta 描述、标题层级、链接、表格、纯文本等结构化数据。纯 Node 实现。

提供的工具

工具 作用
parse_html 提取标题/链接/标题层级/表格/文本

安装

dsh plugin add dsh-html-parse

安装后在 profile 的 package.jsondsh.profile.bundles 中加入 "dsh-html-parse"

用法示例

解析这个 HTML 文件,提取标题和所有链接
→ 调用 parse_html(file="page.html")
/ 5

No ratings yet

Community comments

No comments yet. Be the first to write one.