Skip to content

youdao python dictionary-cli and three nodejs dictionary

Notifications You must be signed in to change notification settings

YeXiaoRain/DICT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DICT

Install

apt install python3 python3-pip git
git clone https://github.com/YeXiaoRain/DICT.git -b python3
pip install --user requirememnts.txt

# edit ~/.bashrc
alias y='python3 <your path>/DICT.py'
# or
alias g='python3 <your path>/googletranslator.py'

Usage

y 你好
y word or sentence
g google 翻译可能需要proxy

Enable OpenapiYoudao

https://ai.youdao.com/创建应用

复制_config.iniconfig.ini并配置你的APP_IDAPP_SECRET

如果没有配置则不会调用OpenapiYoudao

Deps