deepL-isfeng

DeepL translation command line.


Keywords
command-line, deepl, translate
License
MIT
Install
pip install deepL-isfeng==1.0.0

Documentation

DeepL Translation CL

A simple DeepL Translation command line program written in Python that does not require key.

一个使用 Python 编写、无需 auth_key 的 DeepL 翻译命令行工具。

Usage

image-20221018202931345

Examples

Translate word to Chinese

Default is to translate text to Chinese. If no source language is specified, it will autodetect the source language.

python3 deepL.py good

iShot_2022-10-18_18.26.15-1666089417

Translate word to designated language

python3 deepL.py 优雅 -t en

iShot_2022-10-18_18.26.48

Auto detect source language

python3 deepL.py heel

iShot_2022-10-18_18.27.28

Translate word from designated language to designated language

python3 deepL.py heel -s en -t zh

iShot_2022-10-18_18.27.59

Translate Text

python3 deepL.py My heart is slightly larger than the whole universe.

image-20220722001625538

Note ⚠️: Sometimes the request fails because the same IP is requested too many times...😓

image-20220722001638112