/googletrans

Simple Google Translator interface written in python.

Primary LanguagePythonMIT LicenseMIT

googletrans

googletrans is a simple translation interface that utilizes Google Translator python library. This script can simply be integrated into other projects.

Getting started

  1. Clone the repository:
git clone https://github.com/ali-mohammadi/googletrans.git
  1. Install the dependencies:
pip install -r requirements.txt
  1. Run the script using the main.py <json>. You're all set!

json format:

{
  "text": "<input-text>",
  "des": "<language-to>",
  "src": "<language-from> (optional, default: auto)"
}

License

This project is licensed under the MIT License.