Skip to content

hcesar/HtmlAgilityPack.CssSelector

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

Fix for LoadPseudoClasses failing in certain conditions
70f9364

Git stats

Files

Permalink
Failed to load latest commit information.

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]");

About

HtmlAgilityPack CSS Selector

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published