This commit is contained in:
dsyoon
2023-01-17 10:16:43 +09:00
parent 288f2b2235
commit 990c4c17ff

View File

@@ -23,7 +23,6 @@ stockFileName = os.path.join(RESOURCE_PATH, 'stock.db')
week = datetime.today().weekday()
if week in (0, 1, 2, 3, 4): # 0:월, 1:화, 2:수, 3:목, 4:금, 5:토, 6:일
"""
# 재무제표는 3개월마다 다운로드를 한다.
fnGuideCrawler = FnGuideCrawler(START_DATE)
print("[KOSPI 상장기업 재무제표 다운로드]")
@@ -62,8 +61,7 @@ if week in (0, 1, 2, 3, 4): # 0:월, 1:화, 2:수, 3:목, 4:금, 5:토, 6:일
analyzerSqlite.analyzeDaily()
analyzerSqlite.analyzeGrouping("weekly")
analyzerSqlite.analyzeGrouping("monthly")
"""
analyzerSqlite = AnalyzerSqlite(stockFileName)
print("\n[종목 결정]")
# HTML 출력
outPath = os.path.join(PROJECT_HOME, "resources", "analysis")
@@ -75,12 +73,12 @@ if week in (0, 1, 2, 3, 4): # 0:월, 1:화, 2:수, 3:목, 4:금, 5:토, 6:일
shutil.rmtree(outPath)
os.mkdir(outPath)
print("print to Html...")
analyzerSqlite.findCandidate(outPath)
# envelopes를 이용한 daily check
dailyStatus = DailyStatus(RESOURCE_PATH)
dailyStatus.checkEnvelope()
analyzerSqlite.findCandidate(outPath)
print("time : %6.2f", (time.time() - start))
print ("done...")