Install
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). --------------------------------------- This library is sponsored by ZZZ Projects: h
1.13.1Latest, 12 Oct 2026
393MDownloads, all time
0Advisories on the latest
0Advisories, all versions
MITLicence
2.9KStars
3.0/10OpenSSF Scorecard
Source · Homepage · Ask AI Mode · · Markdown
In the news
- Parsing HTML in .NET 10–30x faster than HtmlAgilityPack and AngleSharp: a list of tags instead of a DOM dev.to, 17 Nov 2026
- How do I use C# HtmlAgilityPack to get out the following text from a website? stackoverflow.com, 30 Aug 2024
- Running a C# .NET console app using HtmlAgilityPack that scrapes a webpage and loops appears to produce a memory leak. Where is the issue here? stackoverflow.com, 19 May 2024
Sources: NuGet, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.