extract-html-fragment
Extract specific HTML content from a webpage by providing a URL and CSS selector. Ideal for retrieving targeted web elements for data processing or integration.
Instructions
Extract a specific HTML fragment from a webpage using CSS selectors
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anchorId | No | Optional anchor ID to locate a specific fragment | |
| body | No | Request body for POST requests | |
| followRedirects | No | Whether to follow redirects | |
| fragmentSelector | No | CSS selector for the HTML fragment to extract (when responseType is html-fragment) | |
| headers | No | HTTP headers | |
| method | No | HTTP method | GET |
| selector | Yes | CSS selector for the HTML fragment to extract | |
| timeout | No | Request timeout in milliseconds | |
| url | Yes | URL to fetch |