SkillAgentSearch skills...

HtmlAgilityPack.CssSelector

HtmlAgilityPack CSS Selector

Install / Use

/learn @hcesar/HtmlAgilityPack.CssSelector
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

HtmlAgilityPack CSS Selector

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]");
View on GitHub
GitHub Stars79
CategoryDevelopment
Updated6mo ago
Forks29

Languages

C#

Security Score

72/100

Audited on Sep 21, 2025

No findings