MCPcopy
hub / github.com/GoodCoder666/GoogleTranslate_IPFinder

github.com/GoodCoder666/GoogleTranslate_IPFinder @v3.3.1 sqlite

repository ↗ · DeepWiki ↗ · release v3.3.1 ↗
132 symbols 686 edges 23 files 0 documented · 0%
README

GoogleTranslate_IPFinder

GitHub release GitHub Release Date License GitHub Release Downloads GitHub stars

简体中文 | English

项目简介

谷歌翻译 API 服务器(translate.googleapis.com)的 IP 扫描、测速工具。

免责声明

使用此开源软件时,请您遵守当地法律法规以及 Google 的相关规定。<strong>一切违法/违规用途后果自负。</strong>

若您使用 Windows 或 macOS 系统,可以直接在这里下载打包好的最新版:

我们针对 Windows 提供了两种功能完全相同、但构建方法不同的版本:

  • checker-win-x64.exe: PyInstaller 构建版。适合追求稳定性和兼容性的用户。
  • checker-win-nuitka.exe: Nuitka 构建版。适合追求更小文件体积和更高性能的用户。如果您使用此版本遇到未知报错,请在 issues 中告知我并在问题解决之前临时改用 PyInstaller 版。

[!NOTE]

本项目仅在 Windows 11 下测试通过。 若程序在其他操作系统下无法正常工作,请提出 issue

由于 Python 的限制,本项目不支持 Windows 7 及以下。

快速上手

基本使用步骤:

  1. 从 Releases 下载对应系统的可执行文件(链接见上方)。
  2. 运行程序。若需要第四步更新 Hosts,请手动提权执行。
  3. 选择“测速”,程序会找到延迟最低的 IP。
  4. (可选)若您希望优化自定义网络解析,请点击“写入Hosts”,并在随后的弹窗中确认修改。

[!TIP]

区分“测速”和“扫描”:

  • 测速:从待测速的 IP(即 IP 库)中找出可用 IP,并按照响应时间排序。此操作完成后可以写入 Hosts。
  • 扫描:从选择的 IP 段中找到可用的 IP,并置于 IP 库中。由于 GWS 网络极为庞大,即使是扫描预设的一小部分通常也需要很长时间。

Windows 11 系统演示如下:

[!WARNING]

IPv6 地址的稳定性普遍不好,不到万不得已尽量不要使用。

考虑到 IP 稳定性的问题,在默认设置下,所有 IP 都必须至少通过 3 次测试才会显示在测速结果中。如果想验证单个 IP 的稳定性,请使用「调试」功能。

若必须使用 IPv6,建议在「设置 > 测速」中将测速次数调整至最大值 10。

关于 IP 可用性问题的讨论请移步 #42

从源代码运行

从源代码运行的方法适用于所有支持图形界面的操作系统,只需 Python >= 3.10(推荐 3.12 及以上版本)。

对于 Linux 系统:

git clone https://github.com/GoodCoder666/GoogleTranslate_IPFinder.git
cd GoogleTranslate_IPFinder
pip3 install PySide6 aiohttp
python3 run.py

对于非 Linux 系统:

git clone https://github.com/GoodCoder666/GoogleTranslate_IPFinder.git
cd GoogleTranslate_IPFinder
pip install -r requirements.txt
python run.py

关于在线同步功能

官方 IPv4 地址库 内置在程序中,不定期随功能更新。您可以通过 导入->在线服务 同步最新的 IP 库。同时提供 GoogleTranslateIpCheck 中的两个 IP 库供选择(感谢 @Ponderfly)。三个库的网址如下:

  • 官方 IPv4:https://raw.githubusercontent.com/GoodCoder666/gtdb/main/src/ip.txt
  • 扩展 IPv4:https://raw.githubusercontent.com/Ponderfly/GoogleTranslateIpCheck/master/src/GoogleTranslateIpCheck/GoogleTranslateIpCheck/ip.txt
  • 扩展 IPv6:https://raw.githubusercontent.com/Ponderfly/GoogleTranslateIpCheck/master/src/GoogleTranslateIpCheck/GoogleTranslateIpCheck/IPv6.txt

版权说明

本项目使用 GPL-3.0-or-later 版权许可。IP 扫描逻辑参考 gscan_quic

类似的项目:hcfyapp/google-translate-cn-ip Ponderfly/GoogleTranslateIpCheck csyezheng/ip-scanner

Core symbols most depended-on inside this repo

setText
called by 94
src/ui/mainWindow.py
run
called by 6
src/core/threads.py
_set_buttons_enabled
called by 4
src/ui/mainWindow.py
get_session
called by 3
src/core/utils.py
time_repr
called by 3
src/core/utils.py
_update_ui
called by 3
src/ui/mainWindow.py
_update_progressBar
called by 3
src/ui/mainWindow.py
cancel
called by 2
src/core/threads.py

Shape

Method 94
Class 22
Function 16

Languages

Python100%

Modules by API surface

src/ui/mainWindow.py43 symbols
src/core/threads.py16 symbols
src/core/utils.py15 symbols
src/ui/dlgSettings.py8 symbols
src/ui/dlgEditRange.py7 symbols
src/ui/dlgDebug.py6 symbols
src/ui/dlgScan.py4 symbols
src/ui/generated/ui_dlgSettings.py3 symbols
src/ui/generated/ui_dlgScan.py3 symbols
src/ui/generated/ui_dlgImport.py3 symbols
src/ui/generated/ui_dlgEditRange.py3 symbols
src/ui/generated/ui_dlgDebug.py3 symbols

Dependencies from manifests, versioned

PySide6-Essentials6.6.0 · 1×
aiohttp3.8.1 · 1×

For agents

$ claude mcp add GoogleTranslate_IPFinder \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact