query_selector
Run CSS or XPath queries on HTML to extract structured match previews, providing targeted data for web scraping.
Instructions
Run a CSS or XPath query with scraper_rs and return structured match previews.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | ||
| mode | No | css | |
| limit | No | ||
| query | Yes | ||
| html_chars | No | ||
| source_url | No | ||
| text_chars | No | ||
| include_html | No | ||
| max_size_bytes | No | ||
| document_handle | No | ||
| truncate_on_limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| query | Yes | ||
| matches | No | ||
| source_url | No | ||
| total_matches | Yes | ||
| document_handle | No | ||
| omitted_matches | Yes | ||
| returned_matches | Yes |