@@ -1,3 +1,5 @@
+import time
+
import requests
import json
@@ -273,12 +275,15 @@ class CoverAnalyzer:
return data_dict
except requests.exceptions.RequestException as e:
print(f"请求出错: {e}")
+ time.sleep(1)
continue
except json.JSONDecodeError as e:
print(f"JSON 解析错误: {e}")
except Exception as e:
print(f"其他错误: {e}")
return None