Skip to content

This is a simple Python script made using Selenium, which translates a given text as input into any language supported by Google Translate

License

Notifications You must be signed in to change notification settings

animikhaich/Python-Google-Translate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python-Google-Translate

screenshot 69

Dependencies:

  1. Python 3
  2. Selenium
  3. Numpy
  4. PhantomJS Web Driver
  5. Chrome Web Driver (optional)
  6. PyQt5

Installation for Python 3

Visit: https://www.python.org/downloads/ and download the version suitable for your System

Installation for Selenium

Open Command Prompt (Windows) or Terminal (Linux) and type in the following command:

 pip install selenium

Visit: http://selenium-python.readthedocs.io/installation.html for details.

Installation for Numpy

Open Command Prompt (Windows) or Terminal (Linux) and type in the following command:

 pip install numpy

Visit: https://scipy.org/install.html for details.

Installation for PyQt5

Open Command Prompt (Windows) or Terminal (Linux) and type in the following command:

 pip install PyQt5

Visit: https://pypi.org/project/PyQt5 for details.

Web Drivers

They are included in the folder. You can download them altogether.

How to use?

  1. Run the GUI.py
  2. Enter the text to be translated on the left textbox
  3. Enter the Language to be translated to in the "Language" Textbox (Enter full language name or the code)
  4. Click on "Translate"
  5. Breate in.... breathe out.... :)

Future plans

Reduce the delay caused due to Selenium and perhaps use some other more efficient Web Scraping Libraries, Like Requests.

About

This is a simple Python script made using Selenium, which translates a given text as input into any language supported by Google Translate

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages