sleep 추가

This commit is contained in:
dosang.yoon
2022-06-03 12:33:10 +09:00
parent 5774a6eaf0
commit 80294296f8
6 changed files with 22 additions and 0 deletions

View File

@@ -383,6 +383,7 @@ class StockCrawler:
while True:
try:
html = pd.read_html(requests.get(pg_url, headers=self.header, timeout=5).text)
sleep(0.5)
break
except:
print(pg_url)