# google-translater **Repository Path**: muh/google-translater ## Basic Information - **Project Name**: google-translater - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2024-10-11 - **Last Updated**: 2024-10-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 破解谷歌翻译的 Java 工具类: > 1 获取 tkk 2 根据 tkk,和 输入内容 获取 tk 3 根据 word,tk ,组装 url 访问 谷歌翻译 api --- 2019-06-22 --- 之前的破解不能用了,笔者通过反编译还原了代码,并且修改了下代码 > https://github.com/junjun888/google-translater ------------------------------------------ 调用如下: ``` public static void main(String[] args) throws Exception { // 普通方式初始化 GoogleApi googleApi = new GoogleApi(); // 通过代理 // GoogleApi googleApi = new GoogleApi("122.224.227.202", 3128); String result = googleApi.translate("hello world", "zh"); System.out.println(result); } ``` 输出: ``` 你好,世界 ```