From 9c1abb2e339d151fcc12ad65e03d2468fe746001 Mon Sep 17 00:00:00 2001 From: dsyoon Date: Thu, 27 Apr 2023 23:54:06 +0900 Subject: [PATCH] init --- StockCrawler.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/StockCrawler.py b/StockCrawler.py index e5bddfc..310eddd 100644 --- a/StockCrawler.py +++ b/StockCrawler.py @@ -96,6 +96,7 @@ if week in (0, 1, 2, 3, 4): # 0:월, 1:화, 2:수, 3:목, 4:금, 5:토, 6:일 print("\n[환율 (USD, JPY, EUR, CNY)]") metaCrawler.crawl_exchange(stockFileName) slackBot.sendMsg("5. done exchange data...") + break except: ERROR_COUNT += 1 continue @@ -108,6 +109,7 @@ if week in (0, 1, 2, 3, 4): # 0:월, 1:화, 2:수, 3:목, 4:금, 5:토, 6:일 print("\n[원유 (WTI), 국제금, COPPER, NATURALGAS, CORN, SOYBEAN]") metaCrawler.crawl_meterials(stockFileName) slackBot.sendMsg("6. done additional data...") + break except: ERROR_COUNT += 1 continue @@ -123,6 +125,7 @@ if week in (0, 1, 2, 3, 4): # 0:월, 1:화, 2:수, 3:목, 4:금, 5:토, 6:일 try: stockCrawler.crawl_etf_stocks(stockFileName) slackBot.sendMsg("7. done etf stocks...") + break except: ERROR_COUNT += 1 continue @@ -134,6 +137,7 @@ if week in (0, 1, 2, 3, 4): # 0:월, 1:화, 2:수, 3:목, 4:금, 5:토, 6:일 try: stockCrawler.crawl_stocks(stockFileName) slackBot.sendMsg("8. done stocks...") + break except: ERROR_COUNT += 1 continue @@ -145,6 +149,7 @@ if week in (0, 1, 2, 3, 4): # 0:월, 1:화, 2:수, 3:목, 4:금, 5:토, 6:일 try: stockCrawler.crawl_special_stocks(stockFileName) slackBot.sendMsg("9. done US stocks...") + break except: ERROR_COUNT += 1 continue @@ -163,6 +168,7 @@ if week in (0, 1, 2, 3, 4): # 0:월, 1:화, 2:수, 3:목, 4:금, 5:토, 6:일 analyzerSqlite.analyzeGrouping("weekly") analyzerSqlite.analyzeGrouping("monthly") slackBot.sendMsg("10. analyze...") + break except: ERROR_COUNT += 1 continue @@ -191,6 +197,7 @@ if week in (0, 1, 2, 3, 4): # 0:월, 1:화, 2:수, 3:목, 4:금, 5:토, 6:일 analyzerSqlite.findCandidates(outPath) slackBot.sendMsg("11. done decision...") + break except: ERROR_COUNT += 1 continue