适用于在linux or mac 终端通过有道api查询单词或者翻译词句
Project description
youdao web api deploy
基于有道词典api(多组api)的mac,linux终端翻译程序
终端调用方式
$ youdao
$ youdao linux
$ youdao how are you
$ youdao hell -t
$ youdao hell -wt
$ youdao hell -tb
$ youdao hell -a
...
说明
主要面对linux系统使用过程中查阅单词,原理当然也很简单,所以是自己使用啦
尽量保证使用过程中不会出现严重错误(当然还需要之后使用的时候再看啦)
主函数在参数获取时支持 -tbw … 方式和 –web -t -b … 方式获取, 使用前一种方法时参数长度限制为两个,即需要查询的内容必须在前两个参数中,并且不能以-开头
翻译句子的时候请使用引号将句子引用起来
添加彩色输出~~~自己才会需要的吧
History
1.1.4 ==> 添加新选项, -a –all 输出所有可选输出
1.1.5 ==> 允许不使用引号查询空格隔开的句子
1.1.6 ==> 修改json获取异常处理
1.1.7 ==> 网络连接验证机制导致返回数据被强制重定向问题判断
2.0.0 ==> 添加本地数据库缓存数据,离线可用
2.0.2 ==> 修复mac os 中无法正确初始化数据库的错误
2.1.0 ==> 使用SQLite3数据库进行本地存储,可离线查询
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
YoudaoDict-2.1.0.tar.gz
(6.2 kB
view hashes)
Built Distribution
YoudaoDict-2.1.0-py2.7.egg
(19.7 kB
view hashes)