Class HtmlNodeExtensions
Extension methods for finding elements within with IEnumerable<HtmlNode>
Inheritance
System.Object
HtmlNodeExtensions
Namespace: IronWebScraper
Assembly: IronWebScraper.dll
Syntax
public static class HtmlNodeExtensions : Object
Methods
ContainingText(IEnumerable<HtmlNode>, String)
Returns all HtmlNodes in the collection that contain the search text.
Declaration
public static IEnumerable<HtmlNode> ContainingText(this IEnumerable<HtmlNode> nodes, string search)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<HtmlNode> | nodes | The nodes. |
System.String | search | The search string. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<HtmlNode> |
ContainingTextCaseInsensitive(IEnumerable<HtmlNode>, String)
Returns all HtmlNodes in the collection that contain the search text. Case Insensitive.
Declaration
public static IEnumerable<HtmlNode> ContainingTextCaseInsensitive(this IEnumerable<HtmlNode> nodes, string search)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<HtmlNode> | nodes | The nodes. |
System.String | search | The search string. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<HtmlNode> |
CSS(IEnumerable<HtmlNode>, String)
Searched multiple HtmlNodes for the given CSS Selector, and returns all distinct matches.
Declaration
public static HtmlNode[] CSS(this IEnumerable<HtmlNode> nodes, string selector)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<HtmlNode> | nodes | HtmlNodes to search |
System.String | selector | A CSS query selector |
Returns
Type | Description |
---|---|
HtmlNode[] |