wigolo-extract
它能做什么
这项技能教智能体如何从网页中提取结构化信息,而不只是纯文本。它可以读取表格、定义列表、嵌入的数据,以及品牌标志等页面详情。
适用场景
- ✓当用户想从网页中获取价格表或功能对比表的时候。
- ✓当用户要求获取结构化数据,或从页面中提取表格的时候。
- ✓当用户想获取网站的品牌颜色、标志和字体的时候。
技能链接
https://github.com/KnockOutEZ/wigolo/blob/main/skills/wigolo-extract/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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"— usemode: "structured"instead. - DON'T pass a schema without
propertieskey — handler rejects it. - DON'T extract for a whole page when you need markdown — use
fetchinstead.
When NOT to use wigolo-extract
- Multi-page autonomous structured extraction — use wigolo's
agenttool instead. - Page requires login / click / form-fill before the data appears — handle authentication with
use_author interact with the page before extracting.
See Also
- wigolo-fetch — for markdown content
- wigolo-agent — for multi-page schema-driven gathering
常见问题
我可以提供 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
评论
- …
同一仓库的更多技能
wigolo
5.5k帮你的智能体通过本地工具服务器搜索、抓取、爬取和研究网页,结果缓存在你的电脑上,无需任何 API 密钥。
wigolo-agent
5.5k帮你的智能体在限定时间内,从多个网络来源一次性收集数据,并按照 schema 定义的固定结构返回。
wigolo-cache
5.5k帮你的智能体先搜索已经抓取、爬取或搜索过的页面,再回到网上查找,使重复查询即时完成且无需额外成本。
wigolo-crawl
5.5k帮你的智能体爬取文档网站或网站的某个板块,在设定的限制内遵循站点地图或链接,并把页面保存到本地缓存。