AngleSharp by Florian Rappl

<PackageReference Include="AngleSharp" Version="0.5.1" />

.NET API 737,792 bytes

 HTMLDocument

Represents an HTML document.
public HTMLCollection All { get; }

Gets a list of all elements in the document.

Gets a list of all of the anchors in the document.

public HTMLBodyElement Body { get; }

Gets the body element.

public string CompatMode { get; }

Gets a value to indicate whether the document is rendered in Quirks mode (BackComp) or Strict mode (CSS1Compat).

public Cookie Cookie { get; set; }

Gets or sets the document cookie.

public DirectionMode Dir { get; set; }

Gets or sets the direction of the document.

public string Domain { get; }

Gets the domain portion of the origin of the current document.

public HTMLCollection Embeds { get; }

Gets a list of the embedded OBJECTS within the current document.

Gets the forms in the document.

public HTMLHeadElement Head { get; }

Gets or sets the head element.

Gets the images in the document.

public HTMLCollection Links { get; }

Gets a collection of all AREA elements and anchor elements in a document with a value for the href attribute.

Gets the scripts in the document.

public string Title { get; set; }

Gets or sets the title of the document.

public string Url { get; }

Gets a string containing the URL of the current document.

public static HTMLDocument LoadFromSource(string source, IConfiguration configuration = null)

Loads a HTML document from the given URL.

public static HTMLDocument LoadFromUrl(string url, IConfiguration configuration = null)

Loads a HTML document from the given URL.

public Node AdoptNode(Node externalNode)

Adopts a node from an external document. The node and its subtree is removed from the document it's in (if any), and its OwnerDocument is changed to the current document.

public void Close()

Finishes writing to a document.

public HTMLCollection GetElementsByName(string name)

Returns a list of elements with a given name in the HTML document.

public void Load(string url)

Loads the document content from the given URL.

public void Open()

Opens a document stream for writing.

public void Write(string content)

Writes text to a document.

public void WriteLn(string content)

Writes a line of text to a document.