-
Notifications
You must be signed in to change notification settings - Fork 727
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
feat(rpc)!: add support for Google's new RPC-based request mechanism #255
Conversation
* fix: issue #234 - extend service url to direct api fix: issue #234 - manage use of translate.googleapis.com which does not need token * fix: issue #234 - extend use of direct api fix: issue #234 - manage use of translate.googleapis.com which does not need token * fix: issue #234 - extend use of direct api fix: issue #234 - manage use of translate.googleapis.com which does not need token * fix: issue #234 - extend use of direct api fix: issue #234 - manage use of translate.googleapis.com which does not need token * fix: issue #234 - extend use of direct api fix: issue #234 - manage use of translate.googleapis.com which does not need token
…leapis.com (possible fix for #234)
Thanks for introducing this, I've not had any issues using the new non-bulk It seems however that the bulk operations are more fiddly with the new RPC mechanism. I tried playing around with the raw requests to see whether this would be possible, but with no luck. Have you had any insights into this? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
googletrans/client.py
Outdated
} | ||
r = self.client.post(url, params=params, data=data) | ||
|
||
if r.status_code != 200 and self.raise_Exception: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be self.raise_exception
instead of self.raise_Exception
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any timetable on when this can be finished or what needs to be done? Also, would detecting languages still be possible with this version of the module? |
Difference between translate_legacy and translate? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
🎉 Happy to announce the long-awaited release of such stable Googletrans that responds to the new Google's RPC-based request mechanism. This introduces possibly backward-incompatible API changes and have the following changes:
Translator.translate
will no longer return some extra data.translate
,detect
are marked as legacy because they are considered unstable and will be phased out.I'm planning to publish this PR as Release Candidate to PyPI starting with v4.0.0-rc1. As such use this at your own risk.