extract_links
Extract links from HTML by CSS or XPath selector and convert them to absolute URLs using a source URL.
Instructions
Extract and absolutize link-like attributes from matching elements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | ||
| mode | No | css | |
| limit | No | ||
| query | No | a[href] | |
| attribute | No | href | |
| source_url | No | ||
| max_size_bytes | No | ||
| document_handle | No | ||
| truncate_on_limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| links | No | ||
| query | Yes | ||
| attribute | Yes | ||
| source_url | No | ||
| total_matches | Yes | ||
| document_handle | No |