Try To Translate 4 0 0 – Quickly Translate Google
- Try To Translate 4 0 0 – Quickly Translate Google Drive
- Try To Translate 4 0 0 – Quickly Translate Google Doc
- Try To Translate 4 0 0 – Quickly Translate Google Docs
- Try To Translate 4 0 0 – Quickly Translate Google Translate
Released:
Highlight or right-click on a section of text and click on Translate icon next to it to translate it to your language. Or, to translate the entire page you're visiting, click the translate icon on the browser toolbar. The most comprehensive image search on the web.
Free Google Translate API for Python. Translates totally free of charge.
Project description
Googletrans is a free and unlimited python library thatimplemented Google Translate API. This uses the Google Translate AjaxAPI to make calls to such methods asdetect and translate.
Compatible with Python 3.6+.
For details refer to the APIDocumentation.
Features
- Fast and reliable - it uses the same servers thattranslate.google.com uses
- Auto language detection
- Bulk translations
- Customizable service URL
- HTTP/2 support
TODO
more features are coming soon.
- Proxy support
- Internal session management (for better bulk translations)
HTTP/2 support
This library uses httpx for HTTP requests so HTTP/2 is supported by default.
How does this library work
You may wonder why this library works properly, whereas otherapproaches such like goslate won’t work since Google has updated itstranslation service recently with a ticket mechanism to prevent a lot ofcrawler programs.
I eventually figure out a way to generate a ticket by reverseengineering on the obfuscated and minified code used by Google togenerate suchtoken,and implemented on the top of Python. However, this could be blocked atany time.
Installation
To install, either use things like pip with the package “googletrans”or download the package and put the “googletrans” directory into yourpython path.
Basic Usage
If source language is not given, google translate attempts to detect thesource language.
Customize service URL
You can use another google translate domain for translation. If multipleURLs are provided it then randomly chooses a domain.
Advanced Usage (Bulk)
Array can be used to translate a batch of strings in a single methodcall and a single HTTP session. The exact same method shown above workfor arrays as well.
Language detection
The detect method, as its name implies, identifies the language used ina given sentence.
Note on library usage
DISCLAIMER: this is an unofficial library using the web API of translate.google.comand also is not associated with Google.
- The maximum character limit on a single text is 15k.
- Due to limitations of the web version of google translate, this APIdoes not guarantee that the library would work properly at all times(so please use this library if you don’t care about stability).
- Important: If you want to use a stable API, I highly recommend you to useGoogle’s official translateAPI.
- If you get HTTP 5xx error or errors like #6, it’s probably becauseGoogle has banned your client IP address.
Versioning
This library follows Semantic Versioning fromv2.0.0. Any release versioned 0.x.y is subject to backwards incompatiblechanges at any time.
Submitting a Pull Request
Contributions to this library are always welcome and highly encouraged:)
- Fork this project.
- Create a topic branch.
- Implement your feature or bug fix.
- Run pytest.
- Add a test for yout feature or bug fix.
- Run step 4 again. If your changes are not 100% covered, go back tostep 5.
- Commit and push your changes.
- Submit a pull request.
License
Googletrans is licensed under the MIT License. The terms are asfollows:
Release historyRelease notifications RSS feed
3.0.0
2.4.0

2.3.0
2.2.0
2.1.4
Try To Translate 4 0 0 – Quickly Translate Google Drive
2.1.3
2.1.2
2.1.1
2.1.0
Try To Translate 4 0 0 – Quickly Translate Google Doc
2.0.0
Download files
Try To Translate 4 0 0 – Quickly Translate Google Docs
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Try To Translate 4 0 0 – Quickly Translate Google Translate
| Filename, size | File type | Python version | Upload date | Hashes |
|---|---|---|---|---|
| Filename, size googletrans-3.0.0.tar.gz (17.5 kB) | File type Source | Python version None | Upload date | Hashes |
Hashes for googletrans-3.0.0.tar.gz
| Algorithm | Hash digest |
|---|---|
| SHA256 | 44caeea42d91ff6ead5c2d49db2b88de66c45c2fe874c8ec03eb9b4ceb3a533d |
| MD5 | 6ca3cdf5d5ecda455bc5b98323f43ecf |
| BLAKE2-256 | 713a3b19effdd4c03958b90f40fe01c93de6d5280e03843cc5adf6956bfc9512 |