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 all link tags in the document head as a list of hrefs.
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 list of language codes of the document. This splits the language string by commas and trims each code.
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 all meta tags in the document as a map of name/property to content. This includes both <meta name='...'> and <meta property='...'> tags.
Gets the Open Graph metadata from the document.
Gets all script tags in the document head as a list of srcs.
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.