Googletrans - Google translation API for Python

Googletrans is a Python library that implements the Google translate API (API). (Googletrans official document)

Google translation is available for free and unlimited use with Python and Googletrans.

First, proceed with the installation.


Install Googletrans

pip install googletrans
conda install -c conda-forge googletrans

Install via pip or conda at the command prompt.


pip install git+https://github.com/BoseCorp/py-googletrans.git --upgrade

If the basic example does not work with the error message “AttributeError: ‘NoneType’ object has no attribute ‘group’”, proceed with the installation again as above.


Next