From 6531f9f2895de7bd6ba0ec4f7aeb6fb5d2c77259 Mon Sep 17 00:00:00 2001 From: wangqiupei <154594742@qq.com> Date: Mon, 10 Mar 2025 12:50:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=86=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 13 ++++--------- main.py | 3 ++- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 4b9085a..896ad25 100644 --- a/README.md +++ b/README.md @@ -27,12 +27,7 @@ ## 安装依赖 ```bash -pip install requests pyyaml -``` - -如果需要HTML解析功能(用于特定网站): -```bash -pip install beautifulsoup4 +pip install -r requirements.txt ``` ## 使用方法 @@ -81,7 +76,7 @@ links = [ ### 自动下载核心程序 -如果系统中未找到V2Ray或XRay核心程序,工具会自动从GitHub下载最新版本。 +如果系统中未找到XRay核心程序,工具会自动从GitHub下载最新版本。 ### 多种格式解析 @@ -99,7 +94,7 @@ links = [ ### 测试方法 -使用V2Ray/XRay核心程序建立真实连接,通过访问Google测试端点(`http://www.gstatic.com/generate_204`)来测量延迟。 +使用XRay核心程序建立真实连接,通过访问Google测试端点(`http://www.gstatic.com/generate_204`)来测量延迟。 ## 注意事项 @@ -111,7 +106,7 @@ links = [ ## 故障排除 - 如果无法获取节点信息,请检查订阅链接是否有效。 -- 如果测试节点时出现错误,请确保V2Ray/XRay核心程序正确安装。 +- 如果测试节点时出现错误,请确保XRay核心程序正确安装。 - 对于特殊网站的解析问题,可能需要安装额外的依赖(如BeautifulSoup4)。 - 如果遇到编码问题,可能需要调整`fetch_content`函数中的编码处理逻辑。 diff --git a/main.py b/main.py index 23f1d71..33f5011 100644 --- a/main.py +++ b/main.py @@ -77,6 +77,7 @@ links = [ "https://ghproxy.net/https://raw.githubusercontent.com/vpnmarket/sub/refs/heads/main/hiddify3.txt", ] +# 测试使用 # links = [ # "https://ghproxy.net/https://raw.githubusercontent.com/firefoxmmx2/v2rayshare_subcription/main/subscription/clash_sub.yaml", # "https://ghproxy.net/https://raw.githubusercontent.com/Roywaller/clash_subscription/refs/heads/main/clash_subscription.txt", @@ -109,7 +110,7 @@ TEST_URLS = [ "http://www.gstatic.com/generate_204", # Google测试 ] CONNECTION_TIMEOUT = 10 # 连接超时时间,单位为秒 -MAX_CONCURRENT_TESTS = 1000 # 最大并发测试数量 +MAX_CONCURRENT_TESTS = 100 # 最大并发测试数量 DEBUG_MODE = False # 默认开启调试模式,方便查看处理过程 # 核心程序配置