Module Documentation¶
-
class
amazonstoreprice.
AmazonStorePrice
¶ -
getpage
(url, retry_ontemp=False)¶ Get the page and raise if status_code is not equal to 200
Parameters: - url(string) – normalized(url)
- retry_ontemp(bool) – if true, retry on 503 error
Returns: bs4(html)
-
getprice
(url, retry_ontemp=False)¶ Find the price on AmazonStore starting from URL
Parameters: - url(string) – url
- retry_ontemp(bool) – if true, retry on 503 error
Returns: float(price cleaned)
-
normalizeprice
(price)¶ remove the currenty from price
Parameters: price(string) – price tag find on amazon store Returns: float(price cleaned)
-
normalizeurl
(url)¶ clean the url from referal and other stuff
Parameters: url(string) – amazon url Returns: string(url cleaned)
-