Karashiiro.HtmlAgilityPack.CssSelectors.NetCoreFork

Unofficial fork of HtmlAgilityPack.CssSelectors.NetCore with patches. If the official version of the package was released more recently than this, please use that instead.


Keywords
HtmlAgilityPack, HtmlAgilityPack.NetCore, Css
Install
Install-Package Karashiiro.HtmlAgilityPack.CssSelectors.NetCoreFork -Version 0.0.2

Documentation

Karashiiro.HtmlAgilityPack.CssSelectors.NetCoreFork · NuGet PRs Welcome GitHub license

Unofficial fork of HtmlAgilityPack.CssSelectors.NetCore with patches. If the official version of the package was released more recently than this, please use that instead.

NetStandard version of HtmlAgilityPack.CssSelector which use HtmlAgilityPack

Installation

Install-Package Karashiiro.HtmlAgilityPack.CssSelectors.NetCoreFork

Usage

var doc = new HtmlAgilityPack.HtmlDocument();
doc.Load(new FileStream("test.html", FileMode.Open));

IList<HtmlNode> nodes = doc.QuerySelectorAll("div .my-class[data-attr=123] > ul li");
HtmlNode node = nodes[0].QuerySelector("p.with-this-class span[data-myattr]");

Buy me the author a beer

Donate