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
nodeHtmlNodeThe HTML node to search in.
isRecursiveboolWhether to search recursively.
tagstringThe tag name to search for.
attributeNamestringThe 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.