Search Results for

    Show / Hide Table of Contents

    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[]
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Free 30-Day Trial Key
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronWebscraper to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronWebscraper free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.