init
This commit is contained in:
@@ -35,7 +35,7 @@ slackBot = SlackBot()
|
||||
error_count = 0
|
||||
if week in (0, 1, 2, 3, 4): # 0:월, 1:화, 2:수, 3:목, 4:금, 5:토, 6:일
|
||||
|
||||
slackBot.sendMsg("Start. Crawling...")
|
||||
slackBot.sendMsg("1. start to crawl...")
|
||||
|
||||
# 재무제표는 3개월마다 다운로드를 한다.
|
||||
fnGuideCrawler = FnGuideCrawler(START_DATE)
|
||||
@@ -46,28 +46,34 @@ if week in (0, 1, 2, 3, 4): # 0:월, 1:화, 2:수, 3:목, 4:금, 5:토, 6:일
|
||||
metaCrawler = MetaCrawler(START_DATE)
|
||||
print("\n[증시자금동향 (신용잔고, 펀드자금 잔고)]")
|
||||
metaCrawler.crawl_money_trend(stockFileName)
|
||||
slackBot.sendMsg("2. done meta data...")
|
||||
|
||||
print("\n[국내 시장금리]")
|
||||
metaCrawler.crawl_interest_rates(stockFileName)
|
||||
slackBot.sendMsg("3. done interest rates...")
|
||||
|
||||
print("\n[투자자별 매매동향(Trading_Trend)]")
|
||||
metaCrawler.crawl_trading_trend(stockFileName)
|
||||
slackBot.sendMsg("4. done trade trend...")
|
||||
|
||||
print("\n[환율 (USD, JPY, EUR, CNY)]")
|
||||
metaCrawler.crawl_exchange(stockFileName)
|
||||
slackBot.sendMsg("5. done exchange data...")
|
||||
|
||||
print("\n[원유 (WTI), 국제금, COPPER, NATURALGAS, CORN, SOYBEAN]")
|
||||
metaCrawler.crawl_meterials(stockFileName)
|
||||
slackBot.sendMsg("6. done additional data...")
|
||||
|
||||
slackBot.sendMsg("Done. Meta Crawling...")
|
||||
|
||||
|
||||
print("\n[종목 다운로드]")
|
||||
stockCrawler = StockCrawler(START_DATE)
|
||||
stockCrawler.crawl_etf_stocks(stockFileName)
|
||||
slackBot.sendMsg("7. done etf stocks...")
|
||||
stockCrawler.crawl_stocks(stockFileName)
|
||||
slackBot.sendMsg("8. done stocks...")
|
||||
stockCrawler.crawl_special_stocks(stockFileName)
|
||||
slackBot.sendMsg("Done. Stock Crawling...")
|
||||
slackBot.sendMsg("9. done US stocks...")
|
||||
|
||||
print("\n[종목 분석]")
|
||||
# S: 분석까지 진행
|
||||
@@ -78,7 +84,6 @@ if week in (0, 1, 2, 3, 4): # 0:월, 1:화, 2:수, 3:목, 4:금, 5:토, 6:일
|
||||
analyzerSqlite.analyzeDaily()
|
||||
analyzerSqlite.analyzeGrouping("weekly")
|
||||
analyzerSqlite.analyzeGrouping("monthly")
|
||||
slackBot.sendMsg("Done. Stock Analysis...")
|
||||
|
||||
print("\n[종목 결정]")
|
||||
# HTML 출력
|
||||
@@ -100,7 +105,7 @@ if week in (0, 1, 2, 3, 4): # 0:월, 1:화, 2:수, 3:목, 4:금, 5:토, 6:일
|
||||
analyzerSqlite.findCandidates(outPath)
|
||||
#stockStatus.findCandidates(outPath)
|
||||
|
||||
slackBot.sendMsg("Done. Crawling...")
|
||||
slackBot.sendMsg("10. done decision...")
|
||||
|
||||
|
||||
print("time : %6.2f 초", (time.time() - start))
|
||||
|
||||
Reference in New Issue
Block a user