lushan88a / google_trans_new

A free and unlimited python API for google translate.
MIT License
394 stars 171 forks source link

Translation Limit per day and usage of Proxy with request #3

Closed mohamedniyaz1996 closed 3 years ago

mohamedniyaz1996 commented 3 years ago

Is there any limit per day/week/month for using this API? Because at google_trans there is a way to specify proxy wich is not possible here it seems.

Actually in a nutshell , need to know , whether this will get blocked by Google , if I put around 10k-20k strings (containing 3-5 words) per day.

If this new one handles proxies internally , happy to use this :).

lushan88a commented 3 years ago

So far, this api has not been restricted.

------------------ Original ------------------ From: mohamedniyaz1996 <notifications@github.com> Date: Sat,Nov 21,2020 0:11 AM To: lushan88a/google_trans_new <google_trans_new@noreply.github.com> Cc: Subscribed <subscribed@noreply.github.com> Subject: Re: [lushan88a/google_trans_new] Translation Limit per day and usage of Proxy with request (#3)

Is there any limit per day/week/month for using this API? Because at google_trans there is a way to specify proxy wich is not possible here it seems.

If this new one handles proxies internally , happy to use this and contribute :).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

mohamedniyaz1996 commented 3 years ago

Ok, let me test this with 10k short string and will get back, Thanks a lot for replying.

lushan88a commented 3 years ago

I have fixed many error in this library, Please tell me if you have any error when you use this library now. Thanks!

mohamedniyaz1996 commented 3 years ago

@lushan88a , please give me 2 more days , Will need to test for stability as well.

But Upfront while checking the code , the below block doesn't support proxy on its own - so there are high chances that we may get blocked at any time:

r = s.send(request=response.prepare(),
                           proxies=urllib.request.getproxies(),
                           verify=False,
                           timeout=self.timeout)
lushan88a commented 3 years ago

I have fix this problem. You can try the new version :)

mohamedniyaz1996 commented 3 years ago

Till now , I had done translation for 10K Strings, no block faced till now. But it is suprising, without using proxy, I didnt get blocked - this left me so suprised :)

Let me know if I can contribute something to this API further.