Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问clear审计异常

browser-content-capture浏览器内容捕获

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

329

周安装

14

GitHub Stars

160

下载量

115
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:browser-content-capture(浏览器内容捕获)
来源仓库:https://github.com/yonatangross/orchestkit
仓库路径:skills/browser-content-capture
安装命令:
npx skills add https://github.com/yonatangross/orchestkit --skill browser-content-capture
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/yonatangross/orchestkit --skill browser-content-capture

简介

用于捕获传统爬虫无法访问的动态网页内容。

  • 支持 SPA、登录墙与无限滚动等复杂前端结构。
  • 可执行多页面爬取与客户端路由导航。browser-content-capture 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 依赖 agent-browser CLI 实现浏览器级数据提取。
  • 适用于文档站点、教程系列等高价值内容归档场景。

SKILL.md

Browser Content Capture

Capture web content that traditional scrapers cannot access using agent-browser CLI.

Overview

This skill enables content extraction from sources that require browser-level access:

  • JavaScript-rendered SPAs (React, Vue, Angular apps)
  • Login-protected documentation (private wikis, gated content)
  • Dynamic content (infinite scroll, lazy loading, client-side routing)
  • Multi-page site crawls (documentation trees, tutorial series)

When to Use

Use when:

  • WebFetch returns empty or partial content
  • Page requires JavaScript execution to render
  • Content is behind authentication
  • Need to navigate multi-page structures
  • Extracting from client-side routed apps

Do NOT use when:

  • Static HTML pages (use WebFetch - faster)
  • Public API endpoints (use direct HTTP calls)
  • Simple RSS/Atom feeds

Quick Start

Basic Capture Pattern

# 1. Navigate to URL
agent-browser open https://docs.example.com

# 2. Wait for content to render
agent-browser wait --load networkidle

# 3. Get interactive snapshot
agent-browser snapshot -i

# 4. Extract text content
agent-browser get text body

# 5. Take screenshot
agent-browser screenshot /tmp/capture.png

# 6. Close when done
agent-browser close

agent-browser Commands Reference

CommandPurposeWhen to Use
open <url>Go to URLFirst step of any capture
snapshot -iGet interactive element treeUnderstanding page structure
eval "<script>"Run custom JSExtract specific content
click @e#Click elementsNavigate menus, pagination
fill @e# "value"Fill inputsAuthentication flows
wait @e#Wait for elementDynamic content loading
screenshot <path>Capture imageVisual verification
consoleRead JS consoleDebug extraction issues
network requestsMonitor XHR/fetchFind API endpoints

Quick reference: See references/agent-browser-commands.md or run agent-browser --help


Capture Patterns

Pattern 1: SPA Content Extraction

For React/Vue/Angular apps where content renders client-side:

# Navigate and wait for hydration
agent-browser open https://react-docs.example.com
agent-browser wait --load networkidle

# Get snapshot to identify content element
agent-browser snapshot -i

# Extract after framework mounts (use ref from snapshot)
agent-browser get text @e5  # Main content area

# Or use eval for custom extraction
agent-browser eval "document.querySelector('article').innerText"

Details: See references/spa-extraction.md

Pattern 2: Authentication Flow

For login-protected content:

# Navigate to login
agent-browser open https://docs.example.com/login
agent-browser snapshot -i

# Fill credentials (refs from snapshot)
agent-browser fill @e1 "user@example.com"  # Email field
agent-browser fill @e2 "password123"        # Password field

# Click submit and wait for redirect
agent-browser click @e3
agent-browser wait --url "**/dashboard"

# Save authenticated state for reuse
agent-browser state save /tmp/auth-state.json

# Now navigate to protected content
agent-browser open https://docs.example.com/private-docs

Details: See references/auth-handling.md

Pattern 3: Multi-Page Crawl

For documentation with navigation trees:

# Get all page links from sidebar
agent-browser open https://docs.example.com
agent-browser snapshot -i

# Extract links via eval
LINKS=$(agent-browser eval "JSON.stringify(Array.from(document.querySelectorAll('nav a')).map(a => a.href))")

# Iterate and capture each page
for link in $(echo "$LINKS" | jq -r '.[]'); do
    agent-browser open "$link"
    agent-browser wait --load networkidle
    agent-browser get text body > "/tmp/content-$(basename $link).txt"
done

Details: See references/multi-page-crawl.md


Session Management

Save and Reuse Authentication

# Login once and save state
agent-browser open https://app.example.com/login
agent-browser snapshot -i
agent-browser fill @e1 "$USERNAME"
agent-browser fill @e2 "$PASSWORD"
agent-browser click @e3
agent-browser wait --url "**/dashboard"
agent-browser state save /tmp/app-auth.json

# Later: restore state
agent-browser state load /tmp/app-auth.json
agent-browser open https://app.example.com/protected-content

Parallel Sessions

# Run isolated sessions for different tasks
agent-browser --session scrape1 open https://site1.com
agent-browser --session scrape2 open https://site2.com

# Extract from each
agent-browser --session scrape1 get text body > site1.txt
agent-browser --session scrape2 get text body > site2.txt

Fallback Strategy

Use this decision tree for content capture:

User requests content from URL
         │
         ▼
    ┌─────────────┐
    │ Try WebFetch│ ← Fast, no browser needed
    └─────────────┘
         │
    Content OK? ──Yes──► Done
         │
         No (empty/partial)
         │
         ▼
    ┌──────────────────┐
    │ Use agent-browser│
    └──────────────────┘
         │
    ├─ Known SPA (react, vue, angular) ──► wait --load networkidle
    ├─ Requires login ──► Authentication flow with state save
    └─ Dynamic content ──► wait @element or wait --text

Best Practices

1. Minimize Browser Usage

  • Always try WebFetch first (10x faster, no browser overhead)
  • Cache extracted content to avoid re-scraping
  • Use get text @e# to extract only needed content

2. Handle Dynamic Content

  • Always use wait after navigation
  • Use wait --load networkidle for heavy SPAs
  • Use wait --text "Expected" for specific content

3. Respect Rate Limits

  • Add delays between page navigations
  • Don't crawl faster than a human would browse
  • Honor robots.txt and terms of service

4. Clean Extracted Content

  • Use targeted refs from snapshot to extract main content
  • Use eval to remove noise elements before extraction
  • Convert to clean markdown for downstream processing

Troubleshooting

IssueSolution
Empty contentAdd wait --load networkidle after navigation
Partial renderUse wait --text "Expected content"
Login requiredUse authentication flow with state save/load
CAPTCHA blockingManual intervention required
Content in iframeUse frame @e# then extract

Related Skills

  • browser-automation - agent-browser CLI quick start and integration
  • webapp-testing - Playwright test automation patterns
  • streaming-api-patterns - Handle SSE progress updates

Version: 2.0.0 (January) Browser Tool: agent-browser CLI (replaces Playwright MCP)

Capability Details

spa-extraction

Keywords: react, vue, angular, spa, javascript, client-side, hydration, ssr Solves:

  • WebFetch returns empty content
  • Page requires JavaScript to render
  • React/Vue app content extraction

auth-handling

Keywords: login, authentication, session, cookie, protected, private, gated Solves:

  • Content behind login wall
  • Need to authenticate first
  • Private documentation access

multi-page-crawl

Keywords: crawl, sitemap, navigation, multiple pages, documentation, tutorial series Solves:

  • Capture entire documentation site
  • Extract multiple pages
  • Follow navigation links

agent-browser-commands

Keywords: agent-browser, open, snapshot, click, fill, eval, get text Solves:

  • Which command to use
  • Browser automation reference
  • agent-browser CLI guide

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.21%
按下载量换算31

Gemini CLI

23.88%
按下载量换算27

Antigravity

19.31%
按下载量换算22

windsurf

14.81%
按下载量换算17

trae

8.1%
按下载量换算9

OpenCode

3.92%
按下载量换算5

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

未通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills