diff --git a/baby.py b/baby.py index b4747b8..5ccb443 100644 --- a/baby.py +++ b/baby.py @@ -9,10 +9,11 @@ def main(): soup = BeautifulSoup(res.content, "html.parser") name = soup.find(attrs={"class": "product_title"}).text stock = soup.find(attrs={"class": "stock"}).text - print("%s: %s" % (name, stock)) if "Out of stock" not in stock: sms("%s in stock šŸŽ‰ \"%s\"\nšŸ”— %s" % (name, stock, url)) + else: + print("%s not in stock, try again šŸ™ƒ" % name) def sms(msg: str):