CsQuery is an HTML parser, CSS selector engine and jQuery port for .NET 4 and C#. It implements all CSS2 & CSS3 selectors, all the DOM manipulation methods of jQuery, and some of the utility methods. The majority of the jQuery test suite (as of 1.6.2) has been ported to C#.

Install-Package CsQueryLatest -Version
dotnet add package CsQueryLatest --version
<PackageReference Include="CsQueryLatest" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CsQueryLatest --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Version is compiled and published on the basis of the last commit by the author.The last commit time is 2015/12/15 11:32:17.

Version 1.3 is a major release. It implements a new C# port of the validator.nu HTML5 parser, a fully HTML5 compliant HTML parser.

Version 1.3.2 now handles the character set encoding properly when using HTTP get methods, as well as an encoding specified in META tags. It also contains bug fixes.

If OuterHtml or InnerHtml appears messy code like &#1100;, add the following code before use CQ class:
CsQuery.Config.HtmlEncoder = CsQuery.HtmlEncoders.None;

Complete change log:


This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated 539 5/15/2018