From 8ef04bb3b2947db611f326f0bb0977115365f151 Mon Sep 17 00:00:00 2001 From: Paul-Louis NECH Date: Sat, 30 Nov 2019 15:09:16 +0100 Subject: [PATCH] fix(baby): SMS without emojis --- baby.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/baby.py b/baby.py index bb1c00e..c20c273 100644 --- a/baby.py +++ b/baby.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python +# -*- coding: utf8 import requests from bs4 import BeautifulSoup @@ -11,9 +13,9 @@ def main(): stock = soup.find(attrs={"class": "stock"}).text 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: - sms("%s not in stock, I'll keep checking for you šŸ™ƒ" % name) + sms("%s pas encore en stock... ƀ suivre ;)" % name) def sms(msg: str): -- libgit2 0.27.0