Skip to main content

Module engine

Module engine 

Source
Expand description

Servo browser engine facade.

Structs§

ConsoleMessage
Browser console message captured during page load.
CrawlError
Error from a failed crawl attempt.
CrawlOptions
Options for crawling a site.
CrawlPage
Successfully crawled page.
CrawlResult
Result for a single crawled page.
FetchOptions
Options for a single page fetch.
Page
Rendered page returned by fetch.

Enums§

ConsoleLevel
Console message severity.
CrawlStatus
Status of a crawled page.

Functions§

crawl
Crawl a site and collect all results.
crawl_each
Crawl a site, invoking on_page for each result as it arrives.
extract_json
Fetch a URL and return structured JSON.
fetch
Fetch a single page via the embedded Servo engine.
markdown
Fetch a URL and return readable Markdown.
text
Fetch a URL and return plain text (document.body.innerText).
validate_url
Validate a URL for fetching. Rejects disallowed schemes and private addresses.