Skip to content

Commit

Permalink
Update rthk.py
Browse files Browse the repository at this point in the history
  • Loading branch information
raileo98 authored Oct 20, 2024
1 parent d467971 commit 18be6bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/rthk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 18be6bb

Please sign in to comment.