mirascope.tools.web._parse_url_content
Module _parse_url_content
Class ParseURLConfig
Configuration for URL content parsing
Bases:
_ConfigurableToolConfigClass ParseURLContent
Tool for parsing and extracting main content from URLs.
Fetches content from URL, removes unnecessary elements like scripts, styles, navigation, etc., and returns clean text content from the webpage's main body.
Bases:
ConfigurableTool[ParseURLConfig]Attributes
Name | Type | Description |
---|---|---|
url | str | - |
Function call
Fetch and parse content from the URL.
Parameters
Name | Type | Description |
---|---|---|
self | Any | - |
Returns
Type | Description |
---|---|
str | Cleaned text content from the URL if successful, error message if parsing fails |