Skip to content

Why now I have to use -p to add a proxy? Is this due to Google ? 为什么现在需要代理才能用 是谷歌的原因吗 #43

Open
@jinastro

Description

@jinastro

Although there is a similar issue, but I think it is better to demonstrate my issue which might be a little bit different.
虽然有个差不多的问题 但是我还是说一下我的问题 可能不太一样

recently, the command can not work
最近 这个命令不能用了 前几天还能用

python3 -m googletranslate zh-CN word

there are the errors
错误长这样

Errrrrrrrrror: HTTPSConnectionPool(host='translate.googleapis.com', port=443): Max retries exceeded with url: /translate_a/single?client=gtx&sl=auto&tl=zh-CN&hl=en&dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=sos&dt=ss&dt=t&ssel=0&tsel=0&kc=1&tk=547524.975478&q=test (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fd47b9ea2f0>, 'Connection to translate.googleapis.com timed out. (connect timeout=5)'))

And adding -p proxy could solve a part of the issue
加代理就行了

python3 -m googletranslate -p 127.0.0.1:8118 zh-CN word

But comparing to before, it is a littile slow and sometimes it has the proxy error, like this
但是貌似比之前慢一些 有时侯也会报代理错误 然后翻译不了

(╯‵□′)╯︵┻━┻: ProxyError...

So, what is the problem. Is it because of google or this python module?
所以 是这个模块的问题 还是 google 的问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions