Package-level declarations
Types
Properties
Functions
Clears the document cache.
Closes the client. This should be called when the API is no longer needed.
Fetches the bytes from the given URL.
Fetches the bytes from the given URL, returning null if an error occurs.
Fetches a document from the given URL.
Fetches a document from the given URL, returning null if an error occurs.
Fetches the text content from the given URL, returning null if an error occurs.
Gets the full text content of the document's body.
Gets the canonical URL of the document based on the <link rel="canonical">
tag.
Gets the charset of the document based on the <meta charset>
or <meta http-equiv="Content-Type">
tag.
Gets the description of the document based on the <meta name="description">
tag.
Gets the first element with the specified ID.
Gets the first element with the specified ID within the element.
Gets all elements with the specified class name.
Gets all elements with the specified class name within the element.
Gets the favicon URL from the document. This checks for common favicon link types such as:
Gets the icon links from the document. This includes both <link rel="icon">
and <link rel="shortcut icon">
.
Gets the language of the document. This checks for the <html lang="...">
attribute first, then falls back to the <meta http-equiv="Content-Language">
tag.
Gets the main text content of the document. This is typically the content inside the <main>
tag or the body if no main tag exists.
Gets the Open Graph metadata from the document.
Gets the stylesheets linked in the document. This includes <link rel='stylesheet'>
tags.
Gets the Twitter Card metadata from the document.
Gets the viewport settings of the document based on the <meta name="viewport">
tag.
Gets the value of an input element.
Gets the value of an input element within the element.
Gets the first element that matches the specified CSS selector.
Gets the first element that matches the specified CSS selector within the element.
Gets all elements that match the specified CSS selector.
Gets all elements that match the specified CSS selector within the element.