nidhaloff / deep-translator

A flexible free and unlimited python tool to translate between different languages in a simple way using multiple translators.
https://deep-translator.readthedocs.io/en/latest/?badge=latest
Apache License 2.0
1.61k stars 185 forks source link

Adding google error and closing connection with google api #166

Closed joaopmjm closed 2 years ago

joaopmjm commented 2 years ago

It doesnt solve the issue #163, but you will start raising the error, in google translate doc says the limit exceeded is 403, which wasnt being handled.

nidhaloff commented 2 years ago

Hi, 403 can also happen for different reasons than that. Can you add the google doc link that you find?

joaopmjm commented 2 years ago

https://cloud.google.com/translate/quotas if ypu exceed your quota API Cloud Translation will return erro 403

nidhaloff commented 2 years ago

@joaopmjm thanks but this is the official google API. Notice that deep-translator do not use the google API, instead it uses web scraping.