Git Product home page Git Product logo

Comments (5)

Animenosekai avatar Animenosekai commented on May 27, 2024 1

Yea that's a problem from googletrans ( ssut/py-googletrans#234 ) and we could try to solve it but since Google changed their method of authenticating a user and managing sessions (the JSON RPC one we are using for GoogleTranslate) I don't think that it will work

from translate.

NawtJ0sh avatar NawtJ0sh commented on May 27, 2024

Hey guys, have you tested https://github.com/Animenosekai/translate/blob/main/translatepy/translators/google.py#L89 with the same text you want to translate to english, then tested it on the actual site, to see if it returns the same result?? Am I doing something wrong or does it do that for you too?

text:

كانت الحياة هناك ، على ما يبدو حلما ، على وشك أن تتحول إلى كابوس. "(وقفة درامية)" مرحبًا يا رفاق! لقد وجدت للتو طريقة جديدة رائعة لحلاقة شعر خصلاتي!

actual site:

Life there, apparently a dream, was about to turn into a nightmare. (dramatic pause) Hey guys! I just found a great new way to shave my tresses!

python module:

Life was there, apparently a dream, about to turn into a nightmare."(Dramatic pause)" Hello you guys!I just found a wonderful new way to shave my hair!

from translate.

Animenosekai avatar Animenosekai commented on May 27, 2024

@NawtJ0sh

Sorry 🙏

Please make another issue as this one is not related to gtoken

from translate.

ZhymabekRoman avatar ZhymabekRoman commented on May 27, 2024

Google changed their method of authenticating a user and managing session

Ah, in that case maybe it makes sense to remove gtoken from translatepy completely? Or maybe make the old implementation separately in GoogleTranslateV3?

from translate.

Animenosekai avatar Animenosekai commented on May 27, 2024

Google changed their method of authenticating a user and managing session

Ah, in that case maybe it makes sense to remove gtoken from translatepy completely? Or maybe make the old implementation separately in GoogleTranslateV3?

I thought it would be fine to keep it, knowing that it will just raise an exception which will be catched.

Also, if this one is still on googletrans it should mean that it is still possible to use it in some way so why not keep it and if it works good if not well too bad it will just fall back to another endpoint

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.