From d67abcb90fe82c56e2d837099aa96f6a23aacd2d Mon Sep 17 00:00:00 2001 From: dsyoon Date: Sun, 27 Aug 2023 22:05:51 +0900 Subject: [PATCH] init --- HTS_Alert.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/HTS_Alert.py b/HTS_Alert.py index fac6086..7139180 100644 --- a/HTS_Alert.py +++ b/HTS_Alert.py @@ -41,6 +41,9 @@ class HTS_Alert : if __name__ == "__main__": hTS_Alert = HTS_Alert() - post = hTS_Alert.checkPrice('252670') + week = datetime.today().weekday() + if week in (0, 1, 2, 3, 4): # 0:월, 1:화, 2:수, 3:목, 4:금, 5:토, 6:일 + + post = hTS_Alert.checkPrice('252670') print ("done...") \ No newline at end of file