This commit is contained in:
dsyoon
2023-04-27 23:54:06 +09:00
parent 44225e9862
commit 9c1abb2e33

View File

@@ -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