C# Класс NCrawler.HtmlProcessor.ContentCrawlerRules

Class for filtering content, for example you might wan't to exclude partial link contained in a speciel part of a html page from beeing followed. Or maybe exclude part of a textual content And replacecontent based regex
Показать файл Открыть проект

Защищенные методы

Метод Описание
ContentCrawlerRules ( ) : System.Collections.Generic

Initializes a new instance of the ContentCrawlerRules class.

ContentCrawlerRules ( string>.Dictionary filterTextRules, string>.Dictionary filterLinksRules ) : System.Collections.Generic

Initializes a new instance of the ContentCrawlerRules class.

StripLinks ( string content ) : string

StripText ( string content ) : string

Substitute ( string original, CrawlStep crawlStep ) : string

Приватные методы

Метод Описание
StripByRules ( string>.Dictionary rules, string content ) : string

Basically strips everything between the start marker and the end marker The start marker is the Key in the Dictionary, the end marker is the Value

Описание методов

ContentCrawlerRules() защищенный Метод

Initializes a new instance of the ContentCrawlerRules class.
protected ContentCrawlerRules ( ) : System.Collections.Generic
Результат System.Collections.Generic

ContentCrawlerRules() защищенный Метод

Initializes a new instance of the ContentCrawlerRules class.
protected ContentCrawlerRules ( string>.Dictionary filterTextRules, string>.Dictionary filterLinksRules ) : System.Collections.Generic
filterTextRules string>.Dictionary /// The filter text rules. ///
filterLinksRules string>.Dictionary /// The filter links rules. ///
Результат System.Collections.Generic

StripLinks() защищенный Метод

protected StripLinks ( string content ) : string
content string /// The content. ///
Результат string

StripText() защищенный Метод

protected StripText ( string content ) : string
content string /// The content. ///
Результат string

Substitute() защищенный Метод

protected Substitute ( string original, CrawlStep crawlStep ) : string
original string
crawlStep CrawlStep
Результат string