Skip to content

dsh-html-parse

Verified

dsh-html-parse · v0.1.0 · MIT

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

Install

dsh plugin add dsh-html-parse

Confirm the layer applied with dsh --profile default --dump-config — see the install guide.

Source

Published to npm without a public repository. Inspect the package contents before installing.

Tags

Readme

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")