This commit is contained in:
dsyoon
2023-08-27 21:57:31 +09:00
parent 6f7ccbb7e3
commit 3fcb8ab2ee

View File

@@ -18,7 +18,7 @@ class HTS_Alert :
THIS_TIME = datetime.now()
today = datetime.today().strftime('%Y%m%d')
while datetime.strptime(today + " 090000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 151500", '%Y%m%d %H%M%S'):
while datetime.strptime(today + " 080000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 151500", '%Y%m%d %H%M%S'):
url = 'https://finance.naver.com/item/main.naver?code={code}'.format(code=code.strip())
res = requests.get(url)