This commit is contained in:
dsyoon
2023-07-11 23:43:52 +09:00
parent d2edee26b4
commit 71b9afdcda
2 changed files with 6 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ if week in (0, 1, 2, 3, 4): # 0:월, 1:화, 2:수, 3:목, 4:금, 5:토, 6:일
slackBot.sendMsg("1. start to crawl...")
ERROR_COUNT = 0
while ERROR_COUNT < 3:
try:
@@ -51,8 +52,10 @@ if week in (0, 1, 2, 3, 4): # 0:월, 1:화, 2:수, 3:목, 4:금, 5:토, 6:일
if ERROR_COUNT >= 3:
exit()
metaCrawler = MetaCrawler(START_DATE)
ERROR_COUNT = 0
while ERROR_COUNT < 3:
try:
@@ -93,6 +96,7 @@ if week in (0, 1, 2, 3, 4): # 0:월, 1:화, 2:수, 3:목, 4:금, 5:토, 6:일
exit()
ERROR_COUNT = 0
while ERROR_COUNT < 3:
try:
@@ -208,5 +212,6 @@ if week in (0, 1, 2, 3, 4): # 0:월, 1:화, 2:수, 3:목, 4:금, 5:토, 6:일
exit()
print("time : %6.2f", (time.time() - start))
print ("done...")