返回顶部
b

browser-read浏览器读取

Extract readable content from browser pages as markdown. Use when web_fetch fails (bot protection, auth-required pages, Twitter/X, LinkedIn) and you already have the page open in the browser.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
207
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

browser-read

browser-read

从已打开的浏览器页面中提取可读文本并返回Markdown格式,适用于web_fetch被屏蔽或缺少认证上下文的页面。

使用场景

  • - web_fetch返回错误或空内容。
  • 页面需要仅在浏览器中可用的认证/cookie/会话状态。
  • 需要从Twitter/X或LinkedIn的时间线/文章中提取文本(此前需使用截图/OCR)。

禁止使用场景

  • - web_fetch已能返回良好的Markdown/文本(更快且成本更低)。
  • 纯静态页面,普通抓取即可满足需求。

操作步骤

  1. 1. 使用browser navigate导航至目标URL。
  2. 从~/clawd/skills/browser-read/extract.js读取提取脚本。
  3. 使用kind=evaluate运行browser act,并将脚本内容作为fn参数传入。
  4. 脚本返回{title, content, excerpt, byline, siteName, length},其中content为Markdown格式。
  5. 若提取失败或返回空内容,脚本将回退使用document.body.innerText。

示例(工具调用)

json
{
action: navigate,
targetId: ...,
url: https://example.com
}
{
action: act,
targetId: ...,
kind: evaluate,
fn: (() => { ... return {title, content, excerpt, byline, siteName, length}; })()
}

注意事项

  • - extract.js是一个自包含的IIFE(立即执行函数表达式),因此可直接作为fn值传递给browser act。
  • 请注意这是一个轻量级提取器;在转换前会主动剥离script/style/nav/header/footer/aside/cookie/广告等元素。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 browser-read-1776268382 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 browser-read-1776268382 技能

通过命令行安装

skillhub install browser-read-1776268382

下载

⬇ 下载 browser-read v1.0.0(免费)

文件大小: 3.23 KB | 发布时间: 2026-4-17 14:15

v1.0.0 最新 2026-4-17 14:15
- Initial release of browser-read skill for extracting readable content from open browser pages as markdown.
- Designed to handle cases where web_fetch fails due to bot protection, authentication requirements, or dynamic content (e.g., Twitter/X, LinkedIn).
- Provides markdown output with metadata: title, excerpt, byline, site name, and content length.
- Falls back to extracting plain text from document body if primary extraction fails.
- Not intended for use when web_fetch already works or on static pages.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部