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

Rate Limiting #45

Closed
bitbytebit1 opened this issue Oct 18, 2023 · 2 comments
Closed

Rate Limiting #45

bitbytebit1 opened this issue Oct 18, 2023 · 2 comments

Comments

@bitbytebit1
Copy link

bitbytebit1 commented Oct 18, 2023

First I want to say you've done amazing work with the README/CLI/API. Really impressive stuff! Well documented, great code and fantastic features.

However there's some shortcomings.

When using the CLI it's pretty easy to get rate limited. blocked. I wasn't aware of this as it wasn't mentioned on the README. I tried to translate a faulty file, got rate limited and subsequently couldn't continue to use this amazing tool without finding a proxy list or VPN. Even after finding a working VPN I wasn't able to fully translate my file without hitting the rate limit leaving me with an incomplete JSON and not much in the way of options.

I'm wondering if it's possible to circumvent getting rate limited by adding a delay in between requests?
You could add a delay parameter that would accept milliseconds. I don't mind waiting longer for my translations if it means I don't have to mess around with finding proxy lists/vpns.

Example:

jsontt en.json -T google -f en -t es --delay 500

What are your thoughts about this?

@ParvinEyvazov
Copy link
Member

Hello, thank you for your comment @bitbytebit1 .

Somehow missed this issue. Sorry for late response.

Is it same with this issue? (assigning "--", which happens when you hit rate-limit)
#31

@ParvinEyvazov
Copy link
Member

Hello @bitbytebit1, now you can set max concurrency limit by putting
-cl 3 or -cl 100 option on CLI in jsontt v.2.0.0.

Thank you for the suggestion.

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

2 participants