The Go Programming Language
› http://golang.org/
› Go Playground
Go Projects
› Revel Web Framework
timothyye

Go 实现的有道词典命令行工具

  •  
  •   timothyye · Sep 7, 2017 · 2598 views
    This topic created in 3344 days ago, the information mentioned may be changed or developed.
    Node 版的在这里: https://www.v2ex.com/t/388261#reply24

    仿照 kenshinji 同学的指导思想,撸了一个 Go 版本的,用了 goquery 这个库,从有道词典扒数据,给有兴趣的同学参考

    https://github.com/TimothyYe/ydict

    目前更新到 V0.3,支持例句显示,可以去 release 中直接下载
    Supplement 1  ·  Sep 8, 2017
    V0.4 发布,支持单词词组查询,多个单词之间用空格分开
    Supplement 2  ·  Sep 8, 2017
    V0.5 发布,支持 SOCKS5 代理
    Supplement 3  ·  Sep 11, 2017
    今日更新,支持 homebrew 方式安装:

    brew tap timothyye/tap
    brew install timothyye/tap/ydict
    Supplement 4  ·  Sep 11, 2017
    V0.7 发布,支持显示查询单词音标
    Supplement 5  ·  Sep 11, 2017
    V0.8 发布,支持 spinner
    Supplement 6  ·  Sep 12, 2017
    V0.9 发布,支持语音朗读
    21 replies  •  2017-09-08 13:56:24 +08:00
    KIDJourney
    KIDJourney
    Sep 7, 2017
    1
    pip install translateit

    translate hello world
    KIDJourney
    KIDJourney
    Sep 7, 2017
    2
    @KIDJourney 自己打自己脸了。。。不知道为什么 hello world 没有翻译出来。。
    timothyye
    timothyye
    OP
    Sep 7, 2017
    3
    -_- #
    kenshinji
    kenshinji
    Sep 7, 2017
    4
    -__-||
    noNOno
    noNOno
    Sep 7, 2017
    5
    -_-没有配 go 语言环境
    timothyye
    timothyye
    OP
    Sep 7, 2017❤️1
    6
    @noNOno release 里面可以下载编译好的
    timothyye
    timothyye
    OP
    Sep 7, 2017
    7
    @kenshinji -_-# 哈哈,你别这样
    noNOno
    noNOno
    Sep 7, 2017
    8
    @timothyye 666,有道词典已卸载-.-
    timothyye
    timothyye
    OP
    Sep 7, 2017
    9
    @noNOno -_-#
    wweir
    wweir
    Sep 7, 2017
    10
    之前用 go 写过一个带 gui 的。
    然而,现在用的纯 shell 版的
    scnace
    scnace
    Sep 7, 2017 via Android
    11
    我把 cmd 的改成了 Alfred workflow 的
    timothyye
    timothyye
    OP
    Sep 7, 2017
    12
    @wweir 666
    timothyye
    timothyye
    OP
    Sep 7, 2017
    13
    @scnace 不错
    limard
    limard
    Sep 7, 2017
    14
    666,
    最近在用欧路
    pandasjw
    pandasjw
    Sep 7, 2017
    15
    双击 666,社长威武,社长牛逼,抱社长大腿,欧路已卸载。
    limard
    limard
    Sep 7, 2017
    16
    编的时候把 Blue 改成 Green 了,颜色暗,黑底有点看不清
    a554340466
    a554340466
    Sep 7, 2017 via iPhone
    17
    支持 最近在学习 golang 可以学习一下了
    loveCoding
    loveCoding
    Sep 7, 2017
    18
    const logo 有心了 2333
    timothyye
    timothyye
    OP
    Sep 7, 2017 via Android
    19
    @loveCoding 用 ascii art 工具生成,直接复制粘贴到代码就可以了,哈哈
    unique
    unique
    Sep 7, 2017 via iPhone
    20
    mark
    timothyye
    timothyye
    OP
    Sep 8, 2017
    21
    V0.5 发布,支持 SOCKS5 代理
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4473 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 01:12 · PVG 09:12 · LAX 17:12 · JFK 20:12
    ♥ Do have faith in what you're doing.