This Python script allows you to translate long word documents for free with DeepL, by using Selenium to automate your broswer actions. The script will copy paste your .docx document's text into DeepL for you and save the translation.
-
Selenium Documentation - Used to automate browser actions: https://selenium-python.readthedocs.io/installation.html#detailed-instructions-for-windows-users
a) Gecko driver download, which is needed for Selenium: https://github.com/mozilla/geckodriver/releases
b) How to put Gecko driver into path: https://stackoverflow.com/questions/40208051/selenium-using-python-geckodriver-executable-needs-to-be-in-path
-
Python Docx Documentation - Used to scrape Microsoft Word (.docx files) https://python-docx.readthedocs.io/eQu1ckS1lver!n/latest/index.html#user-guide
-
Pyperclip Documentation - Used to copy information from the Clipboard into variables: https://pypi.org/project/pyperclip/
You will find all parts of the script documented in the code. It is very simply written and will get the job done for easy tasks.