Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FetchMetadata ¶
type FetchRequest ¶
type FetchRequest struct {
URL string `json:"url"`
Provider string `json:"provider,omitempty"`
Format string `json:"format,omitempty"` // "markdown", "text", "html"
Depth int `json:"depth,omitempty"`
WaitForSelector string `json:"wait_for_selector,omitempty"`
IncludeMetadata bool `json:"include_metadata,omitempty"`
}
type FetchResponse ¶
type FetchResponse struct {
Provider string `json:"provider"`
URL string `json:"url"`
Content string `json:"content"`
Links []string `json:"links,omitempty"`
Metadata *FetchMetadata `json:"metadata,omitempty"`
ScreenshotURL string `json:"screenshot_url,omitempty"`
}
func Fetch ¶
func Fetch(ctx context.Context, req FetchRequest) (*FetchResponse, error)
Fetch extracts readable content and metadata from a target web URL.
type MapRequest ¶
type MapResponse ¶
func Map ¶
func Map(ctx context.Context, req MapRequest) (*MapResponse, error)
Map extracts links and sitemap information from a web domain.
type SearchRequest ¶
type SearchResponse ¶
type SearchResponse struct {
Query string `json:"query"`
Provider string `json:"provider"`
Results []SearchResultItem `json:"results"`
Total int `json:"total"`
}
func Search ¶
func Search(ctx context.Context, req SearchRequest) (*SearchResponse, error)
Search conducts web search using DuckDuckGo lite HTML parser with zero API key dependencies.