You can translate what you want using your terminal instead of wasting your memory opening a browser.
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.
- 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
$ python main.py "hello world"
مرحبا بالعالم
$ python main.py "hello world" -t de
Hallo Welt
$ python main.py "Auto" -s de -t en
Automobile
$ 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.
Copyright (c) 2022 Youssef Mohamed.