C# Class QualityBot.Scrapers.ScrapeBuilder

显示文件 Open project: Ancestry/quality-bot Class Usage Examples

Public Methods

Method Description
BuildScrape ( Request request, PageData pageData ) : Scrape

Scrapes information from a web page.

CleanHtml ( string html ) : string
ScrapeBuilder ( IElementProvider elementProvider, IWebRequestUtil webRequestUtil ) : System

Private Methods

Method Description
AssembleScrape ( Request request, PageData pageData, Resource pageResources ) : Scrape
BoundingRectangleIsDefined ( Rectangle rect ) : bool
ConstrainElementsToBoundingRectangle ( Scrape page, Rectangle clipRect ) : void
ConstrainRectangleToElements ( List elements ) : Rectangle

Calculates a bounding rectangle given child elements.

ValidateBoundingRectangle ( Rectangle rect, Rectangle parentRectangle, bool isDefined ) : void

Method Details

BuildScrape() public method

Scrapes information from a web page.
public BuildScrape ( Request request, PageData pageData ) : Scrape
request QualityBot.RequestPocos.Request The request.
pageData PageData Information pulled from the page.
return QualityBot.ScrapePocos.Scrape

CleanHtml() public method

public CleanHtml ( string html ) : string
html string
return string

ScrapeBuilder() public method

public ScrapeBuilder ( IElementProvider elementProvider, IWebRequestUtil webRequestUtil ) : System
elementProvider IElementProvider
webRequestUtil IWebRequestUtil
return System