extract_structured
Extract repeated list items such as product cards as JSON by mapping CSS selectors to fields, including text and attribute values.
Instructions
Extract repeated items (e.g. product cards) as JSON. fields maps name -> 'css' (inner text), 'css@attr' (attribute) or '@attr' (attribute of the item itself). Example: item_selector='li.card', fields={'name':'h2','price':'.price','url':'a@href'}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| fields | Yes | ||
| item_selector | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |