DeepL Translator CLI using Selenium
Project description
deepl-cli
- DeepL Translator CLI using Selenium
- Translate standard input into a specified language
- Under development on Ubuntu 20.04 LTS
Install
$ pip install deepl-cli
$ sudo apt install chromium-browser chromium-chromedriver python3-selenium -y
$ sudo apt update && sudo apt -f install -y
Requirements
- Python >= 3.8 (Because of
:=
, Walrus operator) - chromium-browser
- chromium-chromedriver
- python3-selenium
- selenium
- selenium@PyPI
Usage
$ deepl
SYNTAX:
$ (...) | deepl <from:lang>:<to:lang>
$ deepl <from:lang>:<to:lang> <<'EOS'
(...)
EOS
$ deepl <from:lang>:<to:lang> <<<"(...)"
USAGE:
$ echo Hello | deepl en:ja
$ deepl :ru <<'EOS' # :ru is equivalent of auto:ru
good morning!
good night.
EOS
$ deepl fr:zh <<<"Mademoiselle"
LANGUAGE CODES:
<from:lang>: {(empty)=auto, ja, en, de, fr, es, pt, it, nl, pl, ru, zh}
<to:lang>: {ja, en, de, fr, es, pt, it, nl, pl, ru, zh}
TIPS:
To use this, run:
$ sudo apt install chromium-browser chromium-chromedriver python3-selenium -y
$ sudo apt update && sudo apt -f install -y
Lisence
MIT
Author
Haruna(eggplants)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
deepl-cli-0.0.4.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for deepl_cli-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32279f2c80fb62e0ad27657f3b9a80fcc1dbce3b288fe128dc9384a8d72b4083 |
|
MD5 | 9f4fa3a39270ad69254c0b7ecac688ae |
|
BLAKE2b-256 | 6a501ceef4b1359378ee79a4625d85bf442be49d87f9786119c1d40e5c0d5192 |