diff --git a/spider/main.py b/spider/main.py index 1c054a0..d534675 100644 --- a/spider/main.py +++ b/spider/main.py @@ -79,6 +79,11 @@ class Auto: if bol: logger.debug("ip被ban秒") return False + bol = self.tab.ele('t:div@text():ERR_SSL_PROTOCOL_ERROR', timeout=1) + if bol: + logger.debug("刷新网页") + self.tab.refresh() + self.tab.wait(1.5) html = self.tab.url logger.debug(f"当前URL: {html}") if 'https://veritaconnect.ca/canadianbreadsettlement/en-us' == html: