C# Class QualityBot.Service

Inheritance: IService
Afficher le fichier Open project: Ancestry/quality-bot Class Usage Examples

Méthodes publiques

Méthode Description
Compare ( Request requestA, Request requestB, bool persist = true ) : QualityBot.ComparePocos.Comparison[]
Compare ( string urlA, string urlB, bool persist = true ) : QualityBot.ComparePocos.Comparison[]
CompareDynamic ( dynamic requestA, dynamic requestB, bool persist = true ) : QualityBot.ComparePocos.Comparison[]
CompareScrapeIds ( string scrapeIdA, string scrapeIdB, bool persist ) : QualityBot.ComparePocos.Comparison[]
Scrape ( Request request ) : Scrape

Scrapes the page as defined by the request object.

Scrape ( string url, bool persist = true ) : Scrape
ScrapeCurrent ( IWebDriver webDriver, Request request ) : Scrape

Scrapes the current page.

ScrapeDynamic ( dynamic request ) : string
Service ( ) : System
Service ( string outputDir ) : System

Private Methods

Méthode Description
DoScrape ( Request request ) : Scrape
GetRectangle ( string rectangle ) : Rectangle?
GetSize ( string size ) : Size?
SaveComparison ( bool persist ) : void
SaveScrapes ( bool persist ) : void
SerializeData ( Scrape data ) : void

Method Details

Compare() public méthode

public Compare ( Request requestA, Request requestB, bool persist = true ) : QualityBot.ComparePocos.Comparison[]
requestA QualityBot.RequestPocos.Request
requestB QualityBot.RequestPocos.Request
persist bool
Résultat QualityBot.ComparePocos.Comparison[]

Compare() public méthode

public Compare ( string urlA, string urlB, bool persist = true ) : QualityBot.ComparePocos.Comparison[]
urlA string
urlB string
persist bool
Résultat QualityBot.ComparePocos.Comparison[]

CompareDynamic() public méthode

public CompareDynamic ( dynamic requestA, dynamic requestB, bool persist = true ) : QualityBot.ComparePocos.Comparison[]
requestA dynamic
requestB dynamic
persist bool
Résultat QualityBot.ComparePocos.Comparison[]

CompareScrapeIds() public méthode

public CompareScrapeIds ( string scrapeIdA, string scrapeIdB, bool persist ) : QualityBot.ComparePocos.Comparison[]
scrapeIdA string
scrapeIdB string
persist bool
Résultat QualityBot.ComparePocos.Comparison[]

Scrape() public méthode

Scrapes the page as defined by the request object.
public Scrape ( Request request ) : Scrape
request QualityBot.RequestPocos.Request The request.
Résultat QualityBot.ScrapePocos.Scrape

Scrape() public méthode

public Scrape ( string url, bool persist = true ) : Scrape
url string
persist bool
Résultat QualityBot.ScrapePocos.Scrape

ScrapeCurrent() public méthode

Scrapes the current page.
public ScrapeCurrent ( IWebDriver webDriver, Request request ) : Scrape
webDriver IWebDriver The WebDriver instance to use.
request QualityBot.RequestPocos.Request The request.
Résultat QualityBot.ScrapePocos.Scrape

ScrapeDynamic() public méthode

public ScrapeDynamic ( dynamic request ) : string
request dynamic
Résultat string

Service() public méthode

public Service ( ) : System
Résultat System

Service() public méthode

public Service ( string outputDir ) : System
outputDir string
Résultat System