Method | Description | |
---|---|---|
GetFuzzyPrimeEligibility ( string itemHtml ) : bool |
Using an item's html, determines Prime eligibility with passable accuracy.
|
|
GetImageThumbnail ( string itemHtml ) : |
Parses out the URL to the product's image thumbnail (if one exists) and then calls DownloadWebImage to return a BitmapImage
|
|
GetPageResultCount ( string pageHtml ) : int |
Given the html of an Amazon search page result, returns the number of product results.
|
|
GetPageResultItemHtml ( string pageHtml, int resultCount ) : List |
Returns a list of individual html product results from an html page
|
|
GetPriceRange ( string itemHtml ) : DoubleRange |
Parses a DoubleRange object representing the "high" and "low" prices from the item's html.
|
|
GetProductName ( string itemHtml ) : string |
Extracts the product's name from a single product's html
|
|
GetRating ( string reviewHistogramHtml ) : double |
Returns a product's average review rating (double)
|
|
GetReviewCount ( string reviewHistogramHtml ) : int |
Returns the number of reviews for the product, given the review histogram html (not the product html)
|
|
GetReviewHistogramHtml ( string itemHtml ) : string |
Given a specific product result html, provides the review histogram html. Used for obtaining review count and review distribution.
|
|
GetScoreDistribution ( string reviewHistogramHtml ) : |
Returns a product's review distribution (percentage of reviews in each category)
|
|
GetStrictPrimeEligibility ( |
Uses an additional page load to determine Prime eligibility with accuracy
|
|
GetURL ( string itemHtml ) : |
Extracts a product's Amazon URL.
|
|
ParseDoubleValues ( string text, int parseCount = -1 ) : List |
Finds and returns a list of signed/unsigned integers/doubles parsed from the supplied string. Comma-formatted numbers are recognized.
|
Method | Description | |
---|---|---|
GetMultipleRegExMatches ( string inputString, string regExPattern ) : List |
Attempts to match the supplied pattern to the input string. Obtains multiple matches and returns a list of string matches if successful and an empty list of strings if no matches found.
|
|
GetSingleRegExMatch ( string inputString, string regExPattern ) : string |
Attempts to match the supplied pattern to the input string. Only obtains a single match and returns the matching string if successful and an empty string if not.
|
public static GetFuzzyPrimeEligibility ( string itemHtml ) : bool | ||
itemHtml | string | |
return | bool |
public static GetImageThumbnail ( string itemHtml ) : |
||
itemHtml | string | |
return |
public static GetPageResultCount ( string pageHtml ) : int | ||
pageHtml | string | html of entire search page |
return | int |
public static GetPageResultItemHtml ( string pageHtml, int resultCount ) : List |
||
pageHtml | string | The string containing a single page of Amazon search results |
resultCount | int | |
return | List |
public static GetPriceRange ( string itemHtml ) : DoubleRange | ||
itemHtml | string | |
return | DoubleRange |
public static GetProductName ( string itemHtml ) : string | ||
itemHtml | string | Single product result html |
return | string |
public static GetRating ( string reviewHistogramHtml ) : double | ||
reviewHistogramHtml | string | html of the review histogram |
return | double |
public static GetReviewCount ( string reviewHistogramHtml ) : int | ||
reviewHistogramHtml | string | html for the review histogram |
return | int |
public static GetReviewHistogramHtml ( string itemHtml ) : string | ||
itemHtml | string | |
return | string |
public static GetScoreDistribution ( string reviewHistogramHtml ) : |
||
reviewHistogramHtml | string | Review histogram html |
return |
public static GetStrictPrimeEligibility ( |
||
productURL | ||
return | bool |
public static GetURL ( string itemHtml ) : |
||
itemHtml | string | |
return |
public static ParseDoubleValues ( string text, int parseCount = -1 ) : List |
||
text | string | The string to parse |
parseCount | int | The number of double values /// it will attempt to parse |
return | List |