wigolo-extract
Skill này làm gì
Skill này dạy agent cách lấy thông tin có cấu trúc từ một trang web thay vì văn bản thuần. Skill có thể đọc bảng, danh sách định nghĩa, dữ liệu nhúng và chi tiết trang như logo thương hiệu.
Khi nào nên dùng
- ✓Khi người dùng muốn một bảng giá hoặc bảng so sánh tính năng từ một trang web.
- ✓Khi người dùng yêu cầu lấy dữ liệu có cấu trúc hoặc trích xuất bảng từ một trang.
- ✓Khi người dùng muốn màu thương hiệu, logo và phông chữ của một website.
Liên kết skill
https://github.com/KnockOutEZ/wigolo/blob/main/skills/wigolo-extract/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Trích xuất bảng giá của trang này thành dữ liệu có cấu trúc mà tôi có thể dán vào bảng tính.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent tải trang và đọc các phần có cấu trúc, như bảng HTML và dữ liệu có cấu trúc nhúng. Agent có thể ghép các trường với một schema hoặc đọc một bộ chọn CSS, rồi trả về kết quả.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Tôi có thể đưa schema không?
Có. Một schema JSON có thể mô tả các trường, và skill ghép chúng từ trang.
Nó có làm việc với HTML thô không?
Có. Skill chấp nhận HTML thô làm đầu vào, không chỉ URL.
Chế độ thương hiệu trả về gì?
Nó trả về logo, favicon, màu, phông chữ và liên kết mạng xã hội, kèm nguồn của từng mục.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 5.5k
- Vị trí xếp hạng
- #14819
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
wigolo
5.5kGiúp agent của bạn tìm kiếm, tải, thu thập và nghiên cứu web qua một máy chủ công cụ cục bộ, với kết quả được lưu trong bộ nhớ đệm trên máy tính và không cần khóa API.
wigolo-agent
5.5kGiúp agent của bạn thu thập dữ liệu từ nhiều nguồn web trong một công việc, trong giới hạn thời gian, và trả về theo cấu trúc cố định được định nghĩa bằng schema.
wigolo-cache
5.5kGiúp agent của bạn tìm trong các trang đã tải, thu thập hoặc tìm kiếm trước đó, trước khi quay lại web, nhờ vậy các lần tra cứu lặp lại diễn ra ngay lập tức và không tốn chi phí.
wigolo-crawl
5.5kGiúp agent của bạn thu thập một trang tài liệu hoặc một phần của website, đi theo sitemap hoặc liên kết trong giới hạn đã đặt, và lưu các trang vào bộ nhớ đệm cục bộ.
Skill tương tự
tavily
394kGiúp agent của bạn tìm kiếm web bằng Tavily và lấy văn bản từ các trang cụ thể, với tùy chọn về độ sâu, tên miền và ngày tháng.
blogwatcher
394kCho phép agent của bạn theo dõi blog và nguồn cấp RSS hoặc Atom, kiểm tra bài viết mới và đánh dấu những bài bạn đã đọc.
data-scraper-agent
280kGiúp agent tự động thu thập dữ liệu từ mọi nguồn công khai. Có thể lên lịch, bổ sung thông tin và lưu kết quả. Hữu ích để theo dõi dữ liệu trực tuyến.