API-less somewhat fast DeepL translation using Selenium.
- Download translator.py and add it to your project
- Install selenium
pip install seleniumand webdriver-managerpip install webdriver-manager - Call
await get_translation(text, langFrom, langTo)in your code. You can find the language codes here - If you get an error that says firefox command not found, install Firefox