Back to Skills

extract

Extract structured data from websites and produce an executable Playwright script plus extracted data. Use when the user wants to scrape, extract, pull, collect, or harvest data from any website — product listings, tables, search results, feeds, profiles, or any repeating content.

1,586stars117forksUpdated 8/17/2026

Security Assessment

Low Risk(88/100)

Detected risks:

Automated Web Scraping(The skill drives a real browser via Playwright and generates automation that scrolls, paginates, and harvests content from arbitrary websites, which can conflict with a target site's terms of service or rate limits if used without care., It is designed to collect structured data at scale from third-party sites, so responsible use depends on the operator having permission to extract the targeted content.)
Security Score88/100

About extract

Extract is a web-scraping skill that turns a request like "scrape the table of results" or "collect all job listings" into two concrete deliverables: a standalone, executable Playwright `.cjs` script that reproduces the extraction, and the extracted data written to disk as JSON (default), CSV, or another requested format. It addresses the fragility of naive scraping by producing scripts that account for how modern sites actually render content.

The skill uses Actionbook as a conditional accelerator: it first tries `actionbook search` and `get` to pull known-good selectors when a site is indexed with a sufficient health score, and only falls back to live browser inspection (`snapshot` for the accessibility tree, `screenshot` for visual confirmation, DOM inspection) when needed. Its core value is a mechanism-aware script strategy with worked code for the patterns that break simple scrapers: waiting for streaming/SSR/RSC hydration to complete, scroll-and-collect loops for virtualized lists, infinite-scroll with no-growth tolerance, and navigation-aware click-through pagination that only advances when the click actually caused a change. It also lays out an execution chain — identify URL, data shape, scope, and output format, then obtain selectors and choose the path.

It targets developers and data analysts who need reliable, repeatable extraction from product listings, tables, search results, feeds, or profiles. Because it drives a real browser and generates automation that scrolls, paginates, and harvests content from arbitrary sites, users should apply it within the target sites' terms of service and rate limits.

FAQ

What do I get out of it?

Two artifacts: a self-contained Playwright `.cjs` script that reproduces the extraction without Actionbook at runtime, and the extracted data written to disk as JSON by default, or CSV/another format on request.

Do I need Actionbook indexing to use it?

No. Actionbook is a conditional accelerator for known-good selectors; when a site isn't indexed or selectors are stale, the skill falls back to live browser snapshot, screenshot, and DOM inspection to discover selectors.

How does it handle dynamic or infinite-scroll pages?

It includes mechanism-aware strategies with sample code for SSR/RSC hydration waits, virtualized list scroll-and-collect, infinite scroll with a no-growth stop condition, and navigation-aware pagination.

What is required to run the generated script?

A Node.js environment with Playwright installed; the produced `.cjs` file runs standalone.

Are there responsible-use considerations?

Yes. It automates a browser to harvest site content, so you should respect each target site's terms of service, robots policies, and rate limits, and avoid extracting data you are not permitted to collect.

Install extract

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill