extract-html-fragment
Extract specific HTML fragments from a webpage using CSS selectors to target desired content, simplifying data retrieval for analysis or integration.
Instructions
Extract a specific HTML fragment from a webpage using CSS selectors
Input 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 |