MirascopeLilypad

mirascope.tools.web._parse_url_content

Module _parse_url_content

Class ParseURLConfig

Configuration for URL content parsing

Bases:

_ConfigurableToolConfig

Attributes

NameTypeDescription
parserstr-
timeoutint-

Class 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

NameTypeDescription
urlstr-

Function call

Fetch and parse content from the URL.

Parameters

NameTypeDescription
selfAny-

Returns

TypeDescription
strCleaned text content from the URL if successful, error message if parsing fails