360 Secure SkillHub
360 安全技能中心

Browser Fetch

基于 Chromium 的浏览器渲染抓取 Skill:对给定 URL 做真实浏览器渲染与 JavaScript 执行,默认启用反检测,支持自定义 User-Agent、代理、超时与等待策略,可输出页面正文文本、完整 HTML 或含元数据的 JSON,也可写入文件,并用退出码区分阻断、状态码失败与运行时错误。

x-green
x-green
热度 37.62
最近更新 2026-06-22 20:25:43
分类:自动化依赖:联网浏览搜索 / 代码执行 / 读写文件应用场景:自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add fvg-browser-fetch
Metadata
name
browser-fetch
description
Use browser-backed fetch when a page needs real Chromium rendering, JavaScript execution, browser user agent behavior, proxy-aware navigation, or blocked-page diagnostics instead of plain HTTP fetch.

Browser Fetch

Use the skill-relative wrapper through bash. Do not assume browser-fetch is on PATH or installed with executable file permissions.

bash {baseDir}/bin/browser-fetch https://example.com/ --json

Default output is extracted page text from body. Browser Fetch enables Chromium stealth evasions by default. Use --html for full HTML, --json for metadata plus content, or --output PATH --metadata PATH when another command should read files.

Supported options:

  • --timeout MS: navigation timeout, default 15000.
  • --user-agent VALUE: override browser context user agent.
  • --proxy-server URL: proxy for this call.
  • --chromium-path PATH: Chromium executable path.
  • --no-stealth: disable default stealth evasions for A/B checks.
  • --wait-until VALUE: domcontentloaded, load, or networkidle.
  • --selector CSS: selector for text extraction, default body.
  • --html: output full page HTML.
  • --text: output extracted page text.
  • --json: output metadata plus content.
  • --output PATH: write content to a file.
  • --metadata PATH: write metadata JSON to a file.
  • --include-metadata: write compact metadata JSON to stderr.
  • --fail: exit non-zero for HTTP status >= 400.

Proxy behavior follows curl-style ambient proxy defaults. The CLI uses --proxy-server first, then FETCH_PROXY_SERVER, then ambient HTTP_PROXY or HTTPS_PROXY. Ambient HTTP_PROXY or HTTPS_PROXY is used by default. Set FETCH_USE_ENV_PROXY=0 to ignore ambient proxy variables.

Exit codes:

  • 0: acceptable fetch.
  • 1: completed fetch with blocked signal, or --fail with HTTP status >= 400.
  • 2: command-line usage error.
  • 3: runtime fetch error such as timeout, DNS, proxy, browser launch, or connection failure.