diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 63066db..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/main.py b/main.py index 050a806..6f5e01f 100644 --- a/main.py +++ b/main.py @@ -28,8 +28,8 @@ def safe_strptime(date_str): # 尝试按照指定格式解析日期 return datetime.strptime(date_str, "%Y年%m月%d日 %H:%M") except ValueError: - # 如果日期格式不对,返回 None - return None + # 如果日期格式不对,返回 datetime.max + return datetime.max # 还原QQ空间网页版说说 @@ -140,6 +140,7 @@ def save_data(): open_file(current_directory + user_save_path[1:]) os.system('pause') + def open_file(file_path): # 检查操作系统 if platform.system() == 'Windows': diff --git a/resource/.DS_Store b/resource/.DS_Store deleted file mode 100644 index ef32eed..0000000 Binary files a/resource/.DS_Store and /dev/null differ diff --git a/util/RequestUtil.py b/util/RequestUtil.py index ea4ebfb..be3b517 100644 --- a/util/RequestUtil.py +++ b/util/RequestUtil.py @@ -80,7 +80,7 @@ def get_login_user_info(): def get_message_count(): # 初始的总量范围 lower_bound = 0 - upper_bound = 100000 # 假设最大总量为1000000 + upper_bound = 10000000 # 假设最大总量为1000000 total = upper_bound // 2 # 初始的总量为上下界的中间值 with tqdm(desc="正在获取消息列表数量...") as pbar: while lower_bound <= upper_bound: