From bf1b9309e125ce918b7d43c5d390e9321c9eae00 Mon Sep 17 00:00:00 2001 From: Alejandro Perez Lopez Date: Sat, 9 Sep 2023 19:22:40 +0200 Subject: [PATCH] Create a class for storing the scraped product information --- bot/amazon_product.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 bot/amazon_product.py diff --git a/bot/amazon_product.py b/bot/amazon_product.py new file mode 100644 index 0000000..939815f --- /dev/null +++ b/bot/amazon_product.py @@ -0,0 +1,9 @@ +class AmazonProduct: + + def __init__(self, title, price, image): + self.title = title + self.price = price + self.image = image + + def __str__(self): + return f"Title={self.title}, price={self.price}, image={self.image}" \ No newline at end of file