Create a class for storing the scraped product information

This commit is contained in:
Alejandro Perez Lopez
2023-09-09 19:22:40 +02:00
parent 1d6213ffb1
commit bf1b9309e1

9
bot/amazon_product.py Normal file
View File

@@ -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}"