Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current Guidance Around Limits? #228

Open
ShaneOH opened this issue Aug 15, 2023 · 2 comments
Open

Current Guidance Around Limits? #228

ShaneOH opened this issue Aug 15, 2023 · 2 comments

Comments

@ShaneOH
Copy link

ShaneOH commented Aug 15, 2023

Hi, this is a great library, thank you for maintaining it.

I went to open this in Discussions (as was suggested here #94 (comment)) but that seems quite inactive so I wanted to ask here since I do believe it constitutes an issue, technically.

I've seen a few mentions of limit numbers:
#154 suggests 5 requests per second and up to 200k requests per day for Google
But #132 suggests being rate limited after fewer than 100 calls
#161 suggests only a few words for lingueeTranslator for example

I also read through some other issues like #149 but those weren't very useful.

So the question is: Are there any general benchmarks on how many requests this package can handle? I'm looking to translate in batches of ~50 characters but it could be bursts of many requests at once. Let's say 100 requests/second. I can pay for API access as a fallback, but building out my project, this library seemed to have incredible potential but I'm concerned about being rate limited basically right away and I can't tell if that's a consistent issue or not. Given this has 1K+ stars I'm assuming people are using it fairly heavily?

I'm basically wondering if I should spend time building my project around this library or if I should just bypass it and eat the cost of Google's API directly if I need to scale at all.

Finally, are there any more examples or explanations on how the proxies work?

Basically any guidance around limits, benchmarks, etc. would be greatly appreciated!

@vhdmoradi
Copy link

I intend to use GoogleTranslator in my api, so if the user inputs search query in other languages, I can translate them to my desired language. but, there may be a lot of users trying my api, many of them simultaniously. So, I won't be able to use this package for more than 5 requests per second?

@bfontaine
Copy link

bfontaine commented Oct 7, 2024

This package is just a collection of API clients; the rate limits are not different than if you were calling the Google API by yourself.

Regarding proxies: this package doesn’t do anything with them, it just pass them down unchanged to the underlying Requests call.

The presentation of this package as being "free and unlimited" is misleading: it’s as "free and unlimited" as the API you use behind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants