Create a class for storing the scraped product information
This commit is contained in:
9
bot/amazon_product.py
Normal file
9
bot/amazon_product.py
Normal 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}"
|
||||||
Reference in New Issue
Block a user