linux下的命令行词典

无道词典,简洁优雅的有道词典命令行版本。支持离线查询和在线查询英/汉的功能。Python编写。 

感谢作者ChestnutHeng的分享:https://github.com/ChestnutHeng/Wudao-dict

欢迎大家来我github上发issue或者pull request。 
https://github.com/ChestnutHeng/Wudao-dict 
英汉(柯林斯): 
En_Zh Demo
汉英: 
Zh_En Demo

功能特性

  1. 20w英文词库 + 10w汉英词库
  2. 英汉/汉英查询功能
  3. 词组查询功能(直接输入wd in order to)
  4. 在线查询功能(从有道词典获取)

安装说明

Linux

  1. 安装环境: 需要python3和bs4 (在线搜索用)

    pip3 install bs4
         
         
    • 1
    • 1
  2. 运行

    $ git clone https://github.com/ChestnutHeng/Wudao-dict/
    $ cd ./wudao-dict/wudao-dict
    $ sudo sh setup.sh
         
         
    • 1
    • 2
    • 3
    • 1
    • 2
    • 3

    看到出现Setup Finished!表明安装成功。如果发生由于移动安装文件不能使用的情况,只需再次运行该脚本即可。

  3. 解压./wudao-dict/wudao-dict/dict/dict.zip./wudao-dict/wudao-dict/dict/下开始使用。

Windows

由于编码问题暂不能使用。

使用说明

运行wd -h查看使用说明。

$ wd -h
Usage: wd [OPTION]... [WORD]
Youdao is wudao, An powerful dict.
-k, --kill                   kill the server process
-h, --help                   display this help and exit
-s, --short-desc             show description without the sentence
-o, --online-search          search word online
   
   
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

查词时可以直接使用wd 词语查汉英词典,或wd word查英汉词典(可以自动检测)。

参数说明

使用方法: wd [OPTION]... [WORD]
-k                            杀死词典服务器进程
-s                            只打印简短的单词介绍
-h                            查看帮助
-o                            在线查询


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值