GoTransPy
A free and unlimited python CLI for google translate based on google_trans_new.
It's very easy to use and solve the problem that the old api which use tk value cannot be used. This interface is for academic use only, please do not use it for commercial use.
Prerequisites
- Python >=3.6
- You can install python form here
- requests
pip install requests
- six
pip install six
- if you don't have pip you can follow these steps
Basic Usage
Auto detection translation (*Arabic is the default targeted langauge*)
$ python main.py "hello world"
مرحبا بالعالم
Target a language by adding "-t" flag
$ python main.py "hello world" -t de
Hallo Welt
Change source language by adding "-s" flag
$ python main.py "Auto" -s de -t en
Automobile
Help tag
$ python main.py -h
positional arguments:
text text that will be translated.
optional arguments:
-h, --help show this help message and exit
-v, --version show program version number and exit
-s SOURCE, --source SOURCE
the source language.
-t TARGET, --target TARGET
the target language.
License
Copyright (c) 2022 Youssef Mohamed.