跳到正文
Skillpedia
网页抓取5.5k · #14819

wigolo-extract

它能做什么

这项技能教智能体如何从网页中提取结构化信息,而不只是纯文本。它可以读取表格、定义列表、嵌入的数据,以及品牌标志等页面详情。

适用场景

  • ✓当用户想从网页中获取价格表或功能对比表的时候。
  • ✓当用户要求获取结构化数据,或从页面中提取表格的时候。
  • ✓当用户想获取网站的品牌颜色、标志和字体的时候。

技能链接

https://github.com/KnockOutEZ/wigolo/blob/main/skills/wigolo-extract/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/KnockOutEZ/wigolo/blob/main/skills/wigolo-extract/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请把这个页面的价格表提取为结构化数据,方便我粘贴到电子表格中。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会加载页面并读取其结构化部分,例如 HTML 表格和嵌入的结构化数据。它可以将字段与 schema 匹配,也可以读取单个 CSS 选择器,然后返回结果。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

wigolo extract

Structured data extraction beyond simple markdown.

Quick Reference

// Full structured extraction (ALWAYS prefer this)
{ "url": "https://bun.sh", "mode": "structured" }

// JSON Schema extraction — heuristic field matching
{ "url": "https://example.com/pricing", "mode": "schema", "schema": { "type": "object", "properties": { "name": { "type": "string" }, "price": { "type": "string" }, "sku": { "type": "string" } } } }

// CSS selector extraction
{ "url": "https://example.com", "mode": "selector", "css_selector": ".product-card", "multiple": true }

// Metadata only (matches fetch metadata shape)
{ "url": "https://example.com", "mode": "metadata" }

// From raw HTML
{ "html": "<table>...</table>", "mode": "tables" }

Modes

Mode What it extracts When to use
structured Tables + definition lists + JSON-LD + chart hints + key-value pairs Default choice — use this
tables HTML tables only When you specifically need only tables
schema Fields matching a JSON Schema (LLM-sourced fields verified against source; hallucinated values returned as null) When you know the exact fields you want
brand Logo, favicon, colors, fonts, social_links (with provenance; favicons never promote to logo_url) Brand kit / identity extraction
metadata OpenGraph, meta tags, JSON-LD, canonical_url, og_image For page metadata only
selector CSS selector matches When you know the exact CSS selector

Always use mode: "structured" instead of mode: "tables". Structured captures everything tables does, plus definitions, key-value pairs, JSON-LD, and chart descriptions.

Chart Hints

When a page has visual charts (SVG, Canvas), chart_hints contains text descriptions extracted from aria-labels, SVG <title>, and figcaptions. Use these to describe visual data even when the underlying data is JavaScript-rendered.

Schema Mode

mode: "schema" matches your JSON Schema field names against page content via CSS classes, ARIA labels, microdata, and JSON-LD. When a language model is available it sources fields and verifies each value against the source — hallucinated values are returned as null rather than guessed. Pass { properties: { field: { type: "string" } } }.

Named Schemas

Instead of hand-writing a schema, pass named_schema for a strict, heuristic-only extraction (no LLM required) into a known shape:

{ "url": "https://blog.example.com/post", "named_schema": "Article" }

Available: Article, Recipe, Product, CodeSnippet, Paper, EventListing. Mutually exclusive with schema.

Brand Mode

mode: "brand" pulls a page's identity assets — logo, favicon, colors, fonts, and social_links — each with provenance. Favicons never get promoted to logo_url.

Token Budget

max_tokens_out (cl100k-base) caps extracted output; trailing table rows or heavy keys are dropped first to fit.

Anti-Patterns

  • DON'T use mode: "tables" — use mode: "structured" instead.
  • DON'T pass a schema without properties key — handler rejects it.
  • DON'T extract for a whole page when you need markdown — use fetch instead.

When NOT to use wigolo-extract

  • Multi-page autonomous structured extraction — use wigolo's agent tool instead.
  • Page requires login / click / form-fill before the data appears — handle authentication with use_auth or interact with the page before extracting.

See Also

常见问题

我可以提供 schema 吗?

可以。JSON schema 可以描述字段,这项技能会从页面中匹配它们。

它能处理原始 HTML 吗?

能。这项技能接受原始 HTML 作为输入,而不仅仅是网址。

品牌模式返回什么?

它返回标志、favicon、颜色、字体和社交链接,并注明每项内容的来源。

详情

作者的原始描述

Local-first structured extraction from any webpage — tables, definition lists, key-value pairs, JSON-LD, microdata, chart hints (SVG titles / aria-labels / figcaptions), brand assets, and metadata. Use when the user wants structured data, pricing tables, feature comparisons, or says "extract the table", "get structured data", "pull the pricing", "extract as JSON". For autonomous navigation across many pages, use wigolo's `agent` tool instead.

repo: KnockOutEZ/wigolo

热度

GitHub 星标
5.5k
排名
#14819
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能