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.3.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for deepl_cli-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0550740ff47eb68007aa9b7ff2339e115b9790af9c7c162550c3336eac2d101b |
|
MD5 | cf6c60e5ccae281f43e9e43e1b126558 |
|
BLAKE2b-256 | 410250ba8f2a9ac1d0b57b8b41e768fc20293dcb3ba7a95f786e2b88ee33d57a |