This commit is contained in:
sunwoo1524 2024-02-06 15:18:37 +09:00
parent 8f18c88125
commit 713410827f

View file

@ -15,6 +15,7 @@ def get_price(company_code):
return blind_now.text return blind_now.text
def postStatus(): def postStatus():
try:
company_code = '005930' company_code = '005930'
price = get_price(company_code).replace(",", "") price = get_price(company_code).replace(",", "")
status = "" status = ""
@ -32,6 +33,8 @@ def postStatus():
} }
res = requests.post(f"https://{os.getenv('INSTANCE')}/api/notes/create", json=data) res = requests.post(f"https://{os.getenv('INSTANCE')}/api/notes/create", json=data)
print(res.status_code, res.json()) print(res.status_code, res.json())
except:
print("Error...")
if __name__ == "__main__": if __name__ == "__main__":
sched = BlockingScheduler() sched = BlockingScheduler()