A .NET library for parsing HTML5, SVG, MathML, and CSS with a standards-compliant DOM.
AngleSharp is a .NET library that parses HTML5, SVG, MathML, and CSS to construct a standards-compliant DOM. It solves the problem of web scraping, automation, and HTML/CSS manipulation in C# by providing a browser-like DOM API that follows official W3C specifications.
.NET developers who need to parse, manipulate, or automate interactions with HTML, CSS, SVG, or MathML content, such as for web scraping, testing, or building tools with HTML/CSS support.
Developers choose AngleSharp for its strict standards compliance, high performance, and full DOM functionality including LINQ integration, which outperforms similar libraries like HtmlAgilityPack and ensures compatibility with modern browser behavior.
:angel: The ultimate angle brackets parser library parsing HTML5, MathML, SVG and CSS to construct a DOM based on the official W3C specifications.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Implements the official W3C HTML5.1 specification with proper error handling, ensuring the DOM behaves exactly like modern browsers.
Optimized for speed and memory efficiency, processing large pages within milliseconds, as noted in the README's performance claims.
Supports LINQ queries directly on DOM collections without wrappers, making data manipulation in C# more intuitive.
Allows custom services and extensions via a configurable setup, enabling enhanced functionality for specific use cases.
Cannot execute JavaScript, limiting its effectiveness for scraping dynamic web pages that rely on client-side rendering.
Migration documentation from version 0.9 to 0.10/1.0 indicates significant breaking changes, which can disrupt existing projects.
Setting up custom services and extensions requires a deeper understanding of the architecture, potentially increasing initial setup time.