From 18be6bbf5e2b49e069a267630e34e1e2e593647e Mon Sep 17 00:00:00 2001 From: raileo98 <164594063+raileo98@users.noreply.github.com> Date: Sun, 20 Oct 2024 05:43:29 +0000 Subject: [PATCH] Update rthk.py --- code/rthk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/rthk.py b/code/rthk.py index c0c3a63fb..e6e2cfe28 100644 --- a/code/rthk.py +++ b/code/rthk.py @@ -128,7 +128,7 @@ def check(): response = session.get(url, timeout=2, headers=headersForCheck ) if response.ok: # print(f'使用代理獲取 {url} 成功: \nhttp_version: {response.http_version} \n{response.text}\n') - print(f'使用代理獲取 {url} 成功: \n{response.text}\n') + print(f'使用代理獲取 {url} 成功: \n{ response.text.splitlines()[:10] }\n') else: print(f'使用代理獲取 {url} 失敗:\n{response.status_code}\n') except Exception as e: