From 00fe4b1a2f7cf5cfc37145e262b375cdc30014ab Mon Sep 17 00:00:00 2001 From: Yash Arya Date: Sat, 2 Dec 2023 23:29:09 +0530 Subject: [PATCH] Update amazon.py Corrected the HTML class of price information --- amazon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amazon.py b/amazon.py index a6a58ab..6fa6e16 100644 --- a/amazon.py +++ b/amazon.py @@ -27,7 +27,7 @@ def __init__(self, url): if self.__check_if_product_exists(product_html_element): self.name = product_html_element.text.strip() - self.price = soup.find('span', class_="a-size-base a-color-price a-color-price").text + self.price = soup.find('span', class_="a-price-whole").text else: sys.exit("Unable to get the product. Please check the URL and try again.")