A command line tool written in python that scrapes deepl.com and gives you the translation of the entered sentence into the entered language.
This was sort of an experiment but I ended up with a tool that works quite well. Currently it is a little slow since its scraping the website everytime. A better and faster command line utility is in the works.
- Clone the repository and then navigate to it.
- Make sure you have python3 and pip installed, check using:
python3 --version
thenpip --version
- Install pipenv using:
pip install pipenv
- Install the dependencies using
pipenv install
- Make the script executable using
chmod +x path/to/scrapingDeepL2.py
You are good to go!
Bash syntax for running this script:
./scrapingDeepL2.py language_code The sentence to be translated
Note: Make sure the language code is the ISO-639-1 code.
Language | ISO-639-1 code |
---|---|
English | en |
German | de |
French | fr |
Spanish | es |
Portugese | pt |
Italian | it |
Dutch | nl |
Russian | ru |
Polish | pl |
Chinese | zh |
Japanese | ja |