Table of Contents

Class HtmlScraper

Namespace
SunamoHtml.Html
Assembly
SunamoHtml.dll

EN: Helper class for scraping HTML attribute values from tags. CZ: Pomocná třída pro získávání hodnot HTML atributů z tagů.

public class HtmlScraper
Inheritance
HtmlScraper
Inherited Members
Extension Methods

Methods

AttributeValuesOfTag(HtmlNode, bool, string, string)

Gets all attribute values of a specific tag and appends them to internal string builder.

public static string AttributeValuesOfTag(HtmlNode node, bool isRecursive, string tag, string attributeName)

Parameters

node HtmlNode

The HTML node to search in.

isRecursive bool

Whether to search recursively.

tag string

The tag name to search for.

attributeName string

The attribute name to get values from.

Returns

string

String with all attribute values, each on a new line.

ToString()

Returns the accumulated string from the internal string builder.

public override string ToString()

Returns

string

The accumulated string.