/selenium-translator

A little script that uses selenium to translate text by feeding it to the deepl website.

Primary LanguagePython

selenium-translator

A little python 3 script that uses selenium to translate text by feeding it to the deepl website.

Set up

.
├── README.md
├── requirements.txt
├── selenium_translate.py
├── texts_folder/
└── webdrivers/
  • You first need to install a chrome webdriver in the './webdrivers' folder. You can download here the chrome webdriver.
  • For more information you can check this link

Install

pip install -r requirements.txt

Usage

Add the text files you want to translate in './texts_folder'

exemple: translate to english all the text files in './texts_folder':

python selenium_translate.py --target english 

for more info on the params:

python selenium_translate.py --help