parallel-web-extract

作者: parallel-web

从多个URL并行提取内容,高效利用令牌。通过单条命令处理网页、文章、PDF及JavaScript密集型网站。在分叉上下文中运行,相比内置WebFetch减少令牌开销。支持批量提取多个URL,可设置可选聚焦目标。需安装parallel-cli并完成认证;提取内容以Markdown格式输出至本地文件,便于后续查询。

npx skills add https://github.com/parallel-web/parallel-agent-skills --skill parallel-web-extract

URL Extraction

Extract content from: $ARGUMENTS

Command

Choose a short, descriptive filename based on the URL or content (e.g., vespa-docs, react-hooks-api). Use lowercase with hyphens, no spaces. Substitute it into the command inline$FILENAME is a placeholder, not a shell variable.

parallel-cli extract "$ARGUMENTS" --json -o "/tmp/$FILENAME.json"

Concrete example:

parallel-cli extract "https://docs.parallel.ai" --json -o "/tmp/parallel-docs.json"

Note: -o always saves JSON. The extension must be .json.

Options if needed:

  • --objective "focus area" to focus extraction on a specific goal (also silences the "neither objective nor search_queries" warning that V1 emits when neither is set)
  • -q "keyword" (repeatable) to prioritize keywords in excerpts
  • --full-content to include the complete page body (for long articles, PDFs, or when excerpts may not capture what you need)
  • --full-content-max-chars N to cap full-content size per result
  • --no-excerpts to strip excerpts when you only want full content

Handling failed extractions

If the response has an errors field, an empty results array, or a 404/timeout for the URL, do NOT fabricate content. Tell the user the extraction failed, surface the upstream status, and suggest:

  • Verifying the URL (the page may have moved)
  • Retrying with --full-content if excerpts came back empty but the page exists
  • Using parallel-cli search to locate the current URL if the page was renamed

Response format

Return content as:

Page Title

Then the extracted content verbatim, with these rules:

  • Keep content verbatim - do not paraphrase or summarize
  • Parse lists exhaustively - extract EVERY numbered/bulleted item
  • Strip only obvious noise: nav menus, footers, ads
  • Preserve all facts, names, numbers, dates, quotes

After the response, mention the output file path (/tmp/$FILENAME.json) so the user knows it's available for follow-up questions.

Setup

If parallel-cli is not found, install and authenticate:

/parallel:parallel-cli-setup

If parallel-cli extract returns 403, tell the user balance is likely required. Offer to run parallel-cli balance get, and if needed ask for explicit confirmation before running parallel-cli balance add <amount_cents>. Then retry the original extract command.

来自 parallel-web 的更多技能

parallel-monitor
parallel-web
持续按固定频率追踪网页变化。当用户要求“监控”、“追踪变化”、“关注”或“提醒我”某内容时使用…
migrate-to-parallel
parallel-web
将Exa、Tavily、Perplexity或Firecrawl的网页数据集成完全迁移到相应的Parallel产品,同时保持应用程序行为不变。使用…
parallel-data-enrichment
parallel-web
批量丰富公司、人员或产品数据,通过网页来源字段(如CEO姓名、融资信息、联系方式)进行补充。支持内联JSON数据或CSV文件输入,并将丰富后的结果输出为CSV。异步运行,通过监控URL和轮询命令跟踪进度。需要parallel-cli工具和互联网访问,可处理大型数据集并配置超时时间。通过自然语言意图描述(例如“CEO姓名和成立年份”)支持灵活的字段请求。
parallel-deep-research
parallel-web
针对复杂主题的详尽研究,支持可配置的深度、延迟与成本权衡。三个处理层级(pro-fast、ultra-fast、ultra)耗时从30秒到25分钟不等,成本按基准的1倍至3倍递增。异步执行与轮询机制:即时启动研究,通过URL监控进度,就绪后获取结果且不阻塞流程。输出格式化的Markdown报告与JSON元数据;执行摘要打印至标准输出以便快速概览。专为显式...
parallel-findall
parallel-web
发现与自然语言描述匹配的实体(公司、人物、产品等)。当用户要求“找出所有X”或“列出每个Y,这些Y……”时使用。
parallel-memory
parallel-web
在可能有用时,回忆过去的Parallel Task、Monitor和FindAll运行记录;在接到请求时,清除运行记录或清空记忆。
parallel-web-search
parallel-web
快速网络搜索,用于获取当前信息、进行研究及事实核查。可执行单一目标查询或并行多个关键词搜索,返回最多10条结果,包含摘要和元数据。支持通过--after-date进行时效性过滤,以及使用--include-domains进行特定域名搜索。输出结构化JSON,包含标题、URL、发布日期和摘要,便于解析和后续查询。要求每条声明使用Markdown格式的内联引用...
setup
parallel-web
设置 Parallel 插件(安装 CLI)