Code Monkey home page Code Monkey logo

Comments (5)

Animenosekai avatar Animenosekai commented on May 28, 2024

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.

porocode11 avatar porocode11 commented on May 28, 2024

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.

Animenosekai avatar Animenosekai commented on May 28, 2024

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.

Animenosekai avatar Animenosekai commented on May 28, 2024

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.

Animenosekai avatar Animenosekai commented on May 28, 2024

@EvilMegaDroid Proxies will be available in v2 #15

from translate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.