Bundle
dsh-html-parse
HTML 解析:从 HTML 提取标题/meta/标题层级/链接/表格/纯文本等结构化数据
- Source
- uckkk
- License
- MIT
- Updated
- Updated 21 days ago
Readme
# dsh-html-parse · HTML 解析 从 HTML 文件/字符串提取标题、meta 描述、标题层级、链接、表格、纯文本等结构化数据。纯 Node 实现。 ## 提供的工具 | 工具 | 作用 | |---|---| | `parse_html` | 提取标题/链接/标题层级/表格/文本 | ## 安装 ```bash dsh plugin add dsh-html-parse ``` 安装后在 profile 的 `package.json` 的 `dsh.profile.bundles` 中加入 `"dsh-html-parse"`。 ## 用法示例 ``` 解析这个 HTML 文件,提取标题和所有链接 → 调用 parse_html(file="page.html") ``` ## 安装 ```bash dsh plugin add github:uckkk/dsh-html-parse ``` > 安装即在本机运行第三方代码,请自行审阅源码。 ## 安装 ```bash dsh plugin add github:uckkk/dsh-html-parse ``` ## 使用 安装后在会话中调用该插件注册的工具即可。 ## 许可 MIT > 安装即在本机运行第三方代码,请自行审阅源码。
Install
dsh plugin --profile web add github:uckkk/dsh-html-parse
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install dsh-html-parse from the hub
- This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.