https://github.com/ranjan2104/build-a-translator
Googletrans is a free and unlimited python library that implemented Google Translate API. This uses the Google Translate Ajax API to make calls to such methods as detect and translate. Features
https://github.com/ranjan2104/build-a-translator
googletrans python-3 translator
Last synced: over 1 year ago
JSON representation
Googletrans is a free and unlimited python library that implemented Google Translate API. This uses the Google Translate Ajax API to make calls to such methods as detect and translate. Features
- Host: GitHub
- URL: https://github.com/ranjan2104/build-a-translator
- Owner: Ranjan2104
- Created: 2021-05-19T17:44:27.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-19T17:58:38.000Z (about 5 years ago)
- Last Synced: 2025-01-08T16:31:45.880Z (over 1 year ago)
- Topics: googletrans, python-3, translator
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Build a Translator
API link = https://py-googletrans.readthedocs.io/en/latest/
Googletrans is a free and unlimited python library that implemented Google Translate API. This uses the Google Translate Ajax API to make calls to such methods as detect and translate.
Features
Fast and reliable - it uses the same servers that translate.google.com uses
Auto language detection
Bulk translations
Customizable service URL
HTTP/2 support
Installation
To install, either use things like pip with the package “googletrans” or download the package and put the “googletrans” directory into your python path.
$ pip install googletrans
You may wonder why this library works properly, whereas other approaches such like goslate won’t work since Google has updated its translation service recently with a ticket mechanism to prevent a lot of crawler programs.

I eventually figure out a way to generate a ticket by reverse engineering on the obfuscated and minified code used by Google to generate such token, and implemented on the top of Python. However, this could be blocked at any time.