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