foyoux/pygtrans

Translate 突然无法使用了

Closed this issue · 13 comments

请求失败

这边也是

刚刚看了下,请求被重定向到google.com了,所以需要楼梯。

不知道是不是被玩坏了。

记得上次有人说要翻译几百万条😂

我晚点在电脑里看看,再回复大家

当前,安卓版的Google 翻译app的服务无法使用,**大陆的app。
然而在代码里面改domain为com,能翻译,可能cn的被跳转到com,确实需要梯子

当前,安卓版的Google 翻译app的服务无法使用,**大陆的app。
然而在代码里面改domain为com,能翻译,可能cn的被跳转到com,确实需要梯子

正解.

大家, 设置 domain 参数, 例如: domain='com', domain='com.hk', 然后设置代理 proxies

"""..."""
from pygtrans import Translate

client = Translate(target='en', proxies={'https': 'http://localhost:10809'}, domain='com')

text = '这么好的接口, 可惜了 🍖'

trans_text = client.translate(text).translatedText

print(trans_text)

目前 translate.google.cn 无法访问, 原因未知, 不知后续是否会恢复. ApiKeyTranslate 还是可以正常使用, 无需楼梯.

希望大家以学习交流的态度视之, 如有大量需求, 请购买相应服务.

希望大家以学习交流的态度视之, 如有大量需求, 请购买相应服务.

希望大家以学习交流的态度视之, 如有大量需求, 请购买相应服务. 🌹🌹

可用 domain 可参考 #10

收到

请问代理ip在哪搞呀,有试成功得吗

请问代理ip在哪搞呀,有试成功得吗

就是要梯子呀,得花钱买,能找到免费的也可以

请问代理ip在哪搞呀,有试成功得吗

就是要梯子呀,得花钱买,能找到免费的也可以

好的多谢

requests.exceptions.ProxyError: HTTPSConnectionPool(host='translate.google.com', port=443): Max retries exceeded with url: /translate_a/t?tl=th&sl=zh-cn&ie=UTF-8&oe=UTF-8&client=at&dj=1&format=html&v=1.0 (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001E9CB15AFE0>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')))

@Json-Answer 我刚刚试了,一切正常。应该是你代理的问题,或者是用的太多,被 xxx 了