360 Secure SkillHub
360 安全技能中心

XPR Web Scraping

提供 scrape_url、extract_links、scrape_multiple 三个网页抓取工具:可抓取单页并输出清洗后的文本、Markdown 或原始 HTML 及标题、描述、链接数等元数据;可按正则过滤、去重并解析为绝对链接;也可并行抓取最多 10 个 URL 用于对比研究,单页内容上限 5MB。

paulgnz
paulgnz
热度 88.34
最近更新 2026-05-20 03:40:05
分类:搜索依赖:第三方 API应用场景:研究 / 数据处理

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add xpr-web-scraping
Metadata
name
web-scraping
description
Web scraping tools for fetching and extracting data from web pages

Web Scraping

You have web scraping tools for fetching and extracting data from web pages:

Single page:

  • scrape_url — fetch a URL and get cleaned text content + metadata (title, description, link count)
    • Use format="text" (default) for most tasks — strips all HTML
    • Use format="markdown" to preserve headings, links, lists, bold/italic
    • Use format="html" only when you need raw HTML

Link discovery:

  • extract_links — fetch a page and extract all links with text and type (internal/external)
    • Use the pattern parameter to filter by regex (e.g. "\\.pdf$" for PDF links)
    • Links are deduplicated and resolved to absolute URLs

Multi-page research:

  • scrape_multiple — fetch up to 10 URLs in parallel for comparison/research
    • One failure doesn't block others (uses Promise.allSettled)

Best practices:

  • Prefer "text" format for content extraction, "markdown" for preserving structure
  • Don't scrape the same domain more than 5 times per minute
  • Combine with store_deliverable to save scraped content as job evidence
  • For very large pages, the content is limited to 5MB