From 1b74b4991a4a9b45af1177d8bab45740844a3842 Mon Sep 17 00:00:00 2001 From: joey0629 Date: Wed, 10 Apr 2024 19:45:22 +0800 Subject: [PATCH] cpi update chrome version update v6 --- main.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/main.py b/main.py index d5518db..3624e5f 100644 --- a/main.py +++ b/main.py @@ -306,19 +306,16 @@ if __name__ == "__main__": fomc_url = "https://www.federalreserve.gov/newsevents/pressreleases/monetary" pce_url = "https://www.bea.gov/news/2024/personal-income-and-outlays-"#january-2024 # broadcast_all_pce("February", "february-2024") - # print("Start Time:" , datetime.fromtimestamp(time.time())) - # schedule.every().day.at("18:39").do(broadcast_all_cpi, "FEBRUARY") - # while True: - # if datetime.now().strftime("%Y-%m-%d %H:%M") == "2024-04-10 18:39": - # schedule.run_pending() - # time.sleep(0.1) # Check every 0.1 seconds + print("Start Time:" , datetime.fromtimestamp(time.time())) + schedule.every().day.at("19:47").do(broadcast_all_cpi, "FEBRUARY") + while True: + if datetime.now().strftime("%Y-%m-%d %H:%M") == "2024-04-10 19:47": + schedule.run_pending() + time.sleep(0.1) # Check every 0.1 seconds #NonFarm # text = download_pdf_nonfarm() # read_nonfarm(url) # print(text) #CPI - date , value = find_cpi(cpi_url) - print(date) - print(value) # broadcast_all_cpi("FEBRUARY")