scream

Web scraping for Gleam. Start by turning HTML into a Document with parse.

Types

A parsed HTML document.

pub opaque type Document

One element in a Document: the document plus where you are in it.

pub opaque type Element

Values

pub fn parse(html: String) -> Result(Document, Nil)

Parse an HTML string into a Document.

Returns an error if the HTML can’t be parsed or holds no elements.

✨ Search Document