extract
Scrape a webpage and extract structured data by defining a CSS-based JSON schema, returning parsed JSON in data.
Instructions
Scrape + structured extraction using a CSS-based JSON schema.
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 | |||