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 and Python3.8
Try on Google Cloud Shell
# First,
$ wget -O - https://raw.githubusercontent.com/eggplants/deepl-cli/master/deeplcli_setup.sh | bash
# example
$ deepl en:ja < README-cloudshell.txt
Install
$ wget -O - https://raw.githubusercontent.com/eggplants/deepl-cli/master/deeplcli_setup.sh | bash
Requirements
- Python >= 3.8
- (Because of
:=
, Walrus operator)
- (Because of
- google-chrome >= 83
- chromedriver >= 83
- selenium
Usage
$ deepl
SYNTAX:
$ ... | deepl <from:lang>:<to:lang>
$ deepl <from:lang>:<to:lang> <<'EOS'
...
EOS
$ deepl <from:lang>:<to:lang> <<<"..."
$ deepl <from:lang>:<to:lang> < <filepath>
USAGE:
$ echo Hello | deepl en:ja
$ deepl :ru <<'EOS' # :ru is equivalent of auto:ru
good morning!
good night.
EOS
$ deepl fr:zh <<<"Mademoiselle"
$ deepl de:pl < README_de.md
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.7.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for deepl_cli-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f62457ff7913e9aa8fe5db5e0228295336c7fd40795dab7748e2704bc08f547 |
|
MD5 | 36634f12ee019a5623762381a4153604 |
|
BLAKE2b-256 | a2edaf7b3fdc7de5c144383d38316caa6613b1fdcd1439e463db7c7050010653 |