Skip to content

HakamFostok/HtmlAgilityPack.CssSelector

 
 

Repository files navigation

HtmlAgilityPack CSS Selector For .NET instead of .NET Framework

HAP-CSS is a .NET Extension Method for HtmlAgilityPack HtmlDocument and HtmlNode classes. It is a handy tool for Web scrapers, and a good alternative to HAP XPath queries.

Usage:

var doc = new HtmlAgilityPack.HtmlDocument();
doc.Load("test.html");

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

1- Add xUnit 2- Make the 2 html files as Theory 3- Add converlet 4- Publish the package to Nuget 5- Add Debugging ability to the Nuget Package

About

HtmlAgilityPack CSS Selector

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 93.8%
  • HTML 6.2%