Skip to main content
HtmlAgilityPack package icon

HtmlAgilityPack

This is an agile HTML parser that builds a read/write DOM and supports plain XPATH or XSLT (you actually don't HAVE to understand XPATH nor XSLT to use it, don't worry...). It is a .NET code library that allows you to parse "out of the web" HTML files. The parser is very tolerant with "real world" malformed HTML. The object model is very similar to what proposes System.Xml, but for HTML documents (or streams).

Total Downloads
349.0M
349,044,405
Published
Mar 3, 2018
Latest stable version

Install

.NET CLI
dotnet add package HtmlAgilityPack --version 1.7.1
Package Manager Console
Install-Package HtmlAgilityPack -Version 1.7.1
PackageReference
<PackageReference Include="HtmlAgilityPack" Version="1.7.1" />

Frameworks

.NETStandard1.3 .NETFramework4.0 .NETFramework4.0-Client .NETFramework4.5 .NETCore4.5 .NETStandard1.6 .NETPortable0.0-Profile78 .NETPortable0.0-Profile259 Silverlight5.0 UAP10.0 .NETStandard2.0

Dependencies

System.Net.Http
.NETStandard1.3
[4.3.1, )
System.Xml.XmlDocument
.NETStandard1.3
[4.3.0, )
System.Xml.XPath
.NETStandard1.3
[4.3.0, )
[4.3.0, )
System.Net.Http
.NETStandard1.6
[4.3.1, )
System.Xml.XmlDocument
.NETStandard1.6
[4.3.0, )
System.Xml.XPath
.NETStandard1.6
[4.3.0, )
[4.3.0, )
NETStandard.Library
.NETStandard1.6
[1.6.1, )
[4.3.2, )
[4.3.0, )
System.Net.Http
.NETStandard2.0
[4.3.2, )
System.Xml.XmlDocument
.NETStandard2.0
[4.3.0, )
[4.3.0, )
System.Xml.XPath
.NETStandard2.0
[4.3.0, )

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.

Compatibility metadata lists 11 target frameworks; confirm the exact target used by your application.

The published metadata declares 18 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.