CAFECA-IO / BAIFA-web-crawling

BAIFA conducts web crawling from iSunCloud in frequence
0 stars 0 forks source link

[Bug] 爬蟲連線 isuncoin.baifa.io 若失敗會造成爬蟲斷掉 #57

Closed gibbs-shih closed 2 months ago

gibbs-shih commented 3 months ago
gibbs-shih commented 2 months ago

2024年6月19日星期三 22:38:14 GMT+08:00

CleanShot 2024-06-28 at 16 29 53@2x
gibbs-shih commented 2 months ago

CleanShot 2024-07-01 at 14 25 48

將 try-catch 區塊放在迴圈內部,確保即使在 this.go() 中發生錯誤,迴圈也會繼續每隔 5 秒執行一次,不會因為錯誤而中斷。

gibbs-shih commented 2 months ago

total take about 3-4 hr