C# 클래스 AmazonScrape.Scraper

Performs page and image loads and provides methods to encode/decode strings.
파일 보기 프로젝트 열기: ThomasRush/AmazonScrape 1 사용 예제들

공개 메소드들

메소드 설명
CreateHttpRequest ( Uri URL ) : String

Given a URL, loads and returns a string representing a web page's markup

DecodeHTML ( string html ) : string

Decodes the HTML-encoded sections of the supplied string

DoEvents ( ) : void

Used to force the background worker to wait for a condition before proceeding.

DownloadWebImage ( Uri url ) : BitmapImage
EncodeURL ( string URL ) : string

Encodes the supplied string for use as a URL

LoadReviewHistogram ( string asin ) : string

Given a product's unique Amazon ID, loads the review distribution histogram. Much faster than an entire pageload for detailed review info.

LoadSearchPage ( int pageIndex, string searchTerms ) : string

Loads the result page based on the criteria and the supplied page index, determines the number of valid results on the page, and returns a list of strings representing the markup for each result on the page. Those results can be used by the other Scraper methods to obtain specific pieces of data (e.g. product name).

메소드 상세

CreateHttpRequest() 공개 정적인 메소드

Given a URL, loads and returns a string representing a web page's markup
public static CreateHttpRequest ( Uri URL ) : String
URL System.Uri
리턴 String

DecodeHTML() 공개 정적인 메소드

Decodes the HTML-encoded sections of the supplied string
public static DecodeHTML ( string html ) : string
html string HTML-encoded string
리턴 string

DoEvents() 공개 정적인 메소드

Used to force the background worker to wait for a condition before proceeding.
public static DoEvents ( ) : void
리턴 void

DownloadWebImage() 공개 정적인 메소드

public static DownloadWebImage ( Uri url ) : BitmapImage
url System.Uri
리턴 System.Windows.Media.Imaging.BitmapImage

EncodeURL() 공개 정적인 메소드

Encodes the supplied string for use as a URL
public static EncodeURL ( string URL ) : string
URL string string to encode
리턴 string

LoadReviewHistogram() 공개 정적인 메소드

Given a product's unique Amazon ID, loads the review distribution histogram. Much faster than an entire pageload for detailed review info.
public static LoadReviewHistogram ( string asin ) : string
asin string
리턴 string

LoadSearchPage() 공개 정적인 메소드

Loads the result page based on the criteria and the supplied page index, determines the number of valid results on the page, and returns a list of strings representing the markup for each result on the page. Those results can be used by the other Scraper methods to obtain specific pieces of data (e.g. product name).
public static LoadSearchPage ( int pageIndex, string searchTerms ) : string
pageIndex int
searchTerms string
리턴 string