This commit is contained in:
dosangyoon
2022-02-17 23:30:59 +09:00
parent c0f6b59b70
commit 5537db5b1e
2 changed files with 28 additions and 4 deletions

View File

@@ -232,7 +232,7 @@ class StockCrawler:
break
df = df.append(html[0], ignore_index=True)
df = df.dropna()
if lastPage or len(df) < 1 or df.날짜[0]=='':
if (lastPage) or (len(df) < 1) or ("날짜" not in df) or (df.날짜[1]==''):
print("\t- lastpage:", page)
break