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.5.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for deepl_cli-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab98e885c6a07538fcb51a067305daac046ba4fbfb7ddb1b745017368bef243b |
|
MD5 | f8e952ea7a814374b49b2de765403f49 |
|
BLAKE2b-256 | f75d1f0be572440ef0cab1b57ddaed9788c7afc7ff7058d928020266353ee4d3 |