modify scripts

This commit is contained in:
oscarz
2025-03-24 10:19:33 +08:00
parent 20ef4b6842
commit 7b9b37092b
2 changed files with 14 additions and 9 deletions

View File

@ -58,7 +58,7 @@ def fetch_page(url, validator, parser="html.parser", preprocessor=None, max_retr
logging.warning(f"Validation failed on attempt {attempt + 1} for {url}")
except requests.RequestException as e:
logging.info(f"Warn fetching page {url}: {e}. Retrying ...")
logging.warning(f"fetching page ({url}) error: {e}, Retrying ...")
time.sleep(sleep_time) # 休眠指定的时间,然后重试
logging.error(f'Fetching failed after max retries. {url}')