extract
Get structured data from web pages by defining a CSS-based JSON schema. Target specific elements like tables, lists, or product info and receive parsed JSON.
Instructions
Scrape + structured extraction using a CSS-based JSON schema.
Use when the user wants structured data (tables, lists, product info) extracted from a page. Define a CSS schema to target specific elements.
The schema is a JsonCssExtractionStrategy schema: { "name": "PageItems", "baseSelector": "div.item", "fields": [{"name": "title", "selector": "h2", "type": "text"}, ...] }
Returns parsed JSON in data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| prefer | No | auto | |
| schema | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||