fix(baby): SMS without emojis

parent 6d5ab42b
#!/usr/bin/env python
# -*- coding: utf8
import requests import requests
from bs4 import BeautifulSoup from bs4 import BeautifulSoup
...@@ -11,9 +13,9 @@ def main(): ...@@ -11,9 +13,9 @@ def main():
stock = soup.find(attrs={"class": "stock"}).text stock = soup.find(attrs={"class": "stock"}).text
if "Out of stock" not in stock: if "Out of stock" not in stock:
sms("%s in stock 🎉 \"%s\"\n🔗 %s" % (name, stock, url)) sms("%s en stock: \"%s\"\n-> %s" % (name, stock, url))
else: else:
sms("%s not in stock, I'll keep checking for you 🙃" % name) sms("%s pas encore en stock... À suivre ;)" % name)
def sms(msg: str): def sms(msg: str):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment