This commit is contained in:
dsyoon
2023-01-19 09:52:23 +09:00
parent 3e218d3345
commit 1d4e05b216

View File

@@ -96,7 +96,12 @@ class HTS_DAILY (HTS):
for idx, item in enumerate(items):
stock_code = item[0]
stock_name = item[1]
if stock_name.find('스팩') >= 0 or re.search("\d.*?호", stock_name) is not None and stock_code not in valid_company:
if ((stock_name.find('스팩') >= 0 or
stock_name.find('은행') >= 0 or
stock_name.find('바이오') >= 0 or
stock_name.find('제약') >= 0 or
re.search("\d.*?호", stock_name) is not None) and
stock_code not in valid_company):
continue
print(idx, stock_code, stock_name, ", CODE: ", stock_code, ", NAME: ", stock_name)
@@ -105,7 +110,7 @@ class HTS_DAILY (HTS):
self.getRealTime_DailyCheck(today, stock_code, stock)
data = self.dailyStatus.analyze(stock, self.analyzed_day)
except:
print ("#ERROR:", stock_code)
print ("#ERROR:", stock_code, stock_name)
continue
# 분석일 데이터만 활용한다 (이전 데이터는 제거)