Comments (5)
I do think that it's a good idea and that it's worth implementing because it could be used to avoid getting rate limited to often.
I don't know what's best:
- Giving a list of proxies and then using the next one when it isn't working anymore
- Making a rotation system where they will be used once in order
from translate.
The funny thing is that I cannot get google to rate limit me when using this. Tried with 10,000 requests (blocking and async) and I still was able to get it to translate.
Before finding this I was messing up with googletrans which I could easily get the rate limit on 1000 requests (without stopping, testing).
Using proxy with it had no difference, googletrans does not support them natively (meaning it does not show up as a feature).
I would love to contribute to this and add a proxy implementation but I have no idea how do I go about getting google to rate limit me.
I'm guessing this projects uses the latest google translate api (the hidden one) which was found a few weeks ago right?
from translate.
About the 10,000 requests: I think that you were hitting the cache lol (as explained in the Caching
section of the README)
But the aim of this project is to use multiple services to fallback in case of an error somewhere.
So it would totally make sense if this project had a way better rate limit handling that googltrans
as they are using only one endpoint and I'm using 5 different services (with some of them having multiple endpoints)
I'm not using the new Google Translate API but I'm planning on using it as one more endpoint to add (as you can see in the playground
directory of this repo)
from translate.
The funny thing is that I cannot get google to rate limit me when using this. Tried with 10,000 requests (blocking and async) and I still was able to get it to translate.
Before finding this I was messing up with googletrans which I could easily get the rate limit on 1000 requests (without stopping, testing).
Using proxy with it had no difference, googletrans does not support them natively (meaning it does not show up as a feature).
I would love to contribute to this and add a proxy implementation but I have no idea how do I go about getting google to rate limit me.
I'm guessing this projects uses the latest google translate api (the hidden one) which was found a few weeks ago right?
@EvilMegaDroid
Ok starting from translatepy v1.6
(the latest version), translatepy
uses the new Google Translate JSONRPC API (heavily inspired by the PR on googltrans, which I don't why they didn't merged it yet)
Here are the new things in v1.6: https://github.com/Animenosekai/translate/releases/tag/v1.6
from translate.
@EvilMegaDroid Proxies will be available in v2 #15
from translate.
Related Issues (20)
- Consider adding the formality and glossary feature to DeepL HOT 5
- Bulk Translation support? HOT 2
- NoResult: No service has returned a valid result HOT 8
- Missing spaces between tags when using translate_html HOT 2
- Bing Translator throwing error code 205 HOT 5
- Not accurate source language autodetection HOT 14
- Language auto detecting is broken in MyMemory HOT 3
- example() not working HOT 1
- Next: 3.0 HOT 24
- Different Translation on Yandex HOT 11
- Result mismatch Google Translate HOT 5
- MicrosoftTranslate.text_to_speech is not working HOT 8
- Is the DeepL split text correct? HOT 3
- [SERVER]: cannot import name 'General' from 'nasse.config' HOT 1
- the lang tr is not supported by deepl error (even though it has) HOT 1
- How to set timeout for Translate requesting? HOT 8
- Links and hashtags seem to change after translation HOT 10
- ReversoTranslator BUG HOT 7
- No module named 'translatepy.utils' (on Windows) HOT 2
- Traditional Chinese HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from translate.