Scrape Analyze Page

Extracts every field + value from a saved HTML page, optionally against a JSON schema.

par zytedata · zytedata/claude-skills

Fonctionne avec configuration ★ 8.0/10

Scrape Analyze Page — Extracts every field + value from a saved HTML page, optionally against a JSON schema.

Ce que fait

Cleans a locally saved HTML file, pulls structured metadata (JSON-LD/OpenGraph/microdata) via the extruct library, and merges it with visible page fields into a typed JSON output. Triggers only on already-downloaded files (rejects URLs) and supports a schema-guided strict extraction mode.

Rapport de test

Ran it live on a fixture product page with JSON-LD: clean_html.py + extract_metadata.py (needs uv) correctly split visible DOM from structured metadata and the merged extraction matched a hand-done baseline field for field — but SKILL.md hard-codes `${CLAUDE_SKILL_DIR}/../scrape/references/python-environments.md`, a sibling-skill file that does not exist after a verbatim single-skill copy.

Testé le: 2026-07-15 · Claude Code 2.x (agent harness)

Installation

git clone https://github.com/zytedata/claude-skills
cd claude-skills
mkdir -p ~/.claude/skills
cp -r skills/scrape-analyze-page ~/.claude/skills/scrape-analyze-page

Commandes et exemples de prompts

  • /scrape-analyze-pageExtracts every field + value from a saved HTML page, optionally against a JSON schema.

Les skills se déclenchent sur des demandes en langage courant — aucune commande à retenir. Après installation, des prompts comme ceux-ci l'activent (en anglais) :

  • Extract every field from this saved page product1.html into JSON
  • I downloaded this listing as listing.html, pull out every field and value
  • Analyze data.html against my schema.json in strict extraction mode