init
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user