Dict2Anki-Rev

AnkiWeb addon 1922057561

Syncs Youdao and Eudic wordbooks to Anki with images, clickable phonetics/pronunciation, notes, phrases, examples, detecting card additions/deletions.
AI-generated summary; may contain mistakes.

card-creationimportsync-integrationcard-templatesdictionaryfork-or-reuploadservice-client

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
0 (👍 0 · 👎 0)
Updated
2026-04-16
Anki versions
25.09.2~
Description language
en

Maintenance

active

  • Last update or commit was 1 days before the snapshot (2026-09-30).
  • The repository has 7 test files.
  • The repository has 1 GitHub Actions workflows.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
25.09.2+2026-04-16
History across monthly snapshots

Loading…

Similar addons

ci

Syncs Youdao and Eudic vocabulary lists to Anki, automatically adding or removing cards with images, pronunciations, definitions, phonetics, phrases, and examples.

card-creationimportsync-integrationdictionary

Rating 1 👍 0 · 👎 1 Updated 2019-03-18

README

Dict2Anki-ng

Dict2Anki-ng is a fork from Dict2Anki(原作者:@megachweng),迁移到 Qt 6 和新版 anki,主要功能与原版一致。

Dict2Anki 是一款方便有道词典、欧路词典用户同步生成单词本卡片至Anki的插件

Note:
无论导入有道还是欧路词典的生词本,都推荐使用【查询 - 有道 API】。欧路词典API容易触发限流。

Features

  • 导入有道词典、欧路词典生词本
  • 检测词典软件的生词变化,并在Anki中相应的添加或删除删除卡片
  • 获取图片、发音、注解、音标、短语、例句

How to install

Anki --> 工具 --> 附加组件 --> 获取插件
插件代码:107281012

How to use

同步
同步

同步删除
同步删除

字段修复
字段修复

Change log

  • v7.3.1
    • 修复“新单词”列表查询成功、失败图标
  • v7.3.0
    • 【默认配置】新增【User-Agent】
    • 加密本地保存的 cookies
    • 若所有配置未修改,不再重复写入硬盘
  • v7.2.5
    • 稍微增强配置兼容性(fixed issue #7)
  • v7.2.4
    • 修复可能会下载错误发音内容的问题(#3)
  • v7.2.3
    • 支持登录窗口最大化
  • v7.2.2
    • 【待删除】增加批量复选框
  • v7.2.1
    • 修复单元测试
  • v7.2.0
    • 【默认配置】新增【每分钟查询次数】
  • v7.1.0
    • 增加字段修复功能
  • v7.0.0
    • Breaking Changes:
      • 迁移到 Qt 6,不兼容 Qt 5
      • 模板的 sentence, phrase 字段有调整,不再使用 <table> 格式。
      • 模板的 image 字段有调整,v7 前的版本保存 src=xxx,现在保存完整的 <img src="xxx">,手动添加图片不会打乱排版了。
    • 修复欧路词典单词信息不完整、不正确的问题。有道词典的部分未作修改。
  • v6.1.6
    • 修复ARM Mac启动日志出错的问题 THX to <a href="https://github.com/megachweng/Dict2Anki/pull/108">@xbot</a>
  • v6.1.5
    • 更新有道词典API,解决首次登录无法唤出登陆页的问题
  • v6.1.4
    • 修复Anki 2.1.4版本同步失败的问题 THX to <a href="https://github.com/megachweng/Dict2Anki/pull/92">@YLongo</a>
    • 修复Anki 2.1.4版本首次同步默认到Default Deck的问题
  • v6.1.3 修复欧路字典无法登录的问题 THX to <a href="https://github.com/megachweng/Dict2Anki/pull/84" rel="nofollow">@cythb</a>
  • v6.1.2 修复有道单词本分组获取失败的问题
  • v6.1.1 添加欧路词典查询API THX to <a href="https://github.com/megachweng/Dict2Anki/pull/75" rel="nofollow">@wd</a>
  • v6.1.0
    • 支持第三方登陆
    • 加入模版字段检查
  • v6.0.2 添加英英注释 THX to deluser8
  • v6.0.1 修复菜单栏不雅词汇
  • v6.0.0
    • 导入指定单词分组
    • 添加必应(bing)词典查询API
    • 添加待删除单词列表,可选择需要删除的 Anki 卡片
    • 恢复卡片 短语字段
    • 一些UI优化
    • 重构代码,解决上版本奔溃问题
    • 添加单元测试

Contribute Guide

非常欢迎你的贡献,请PR前确保通过了全部单元测试 ./test.sh

Development Guide

Python version: 3.9

安装依赖

source ./venv/Scripts/activate
pip install -r requirements.txt

Debug

  1. 在 Anki addon 目录中创建本项目的 symbolic link:

    • Windows:
      在 Command Prompt 中执行(如果策略组中没开启 Create Symbolic Link 权限,就需要管理员权限)

      mklink /D %APPDATA%\Anki2\addons21\Dict2Anki-ng-debug full\path\to\project_root
      
    • Linux:

      ln -s full/path/to/project_root "$HOME/.local/share/Anki2/addons21/Dict2Anki-ng-debug"
      
    • macOS: TODO

  2. 创建 debug 配置:以 vscode 为例,使用 debugpy 作为 debugger,其他 IDE / text editor 可作参考

    // .vscode/launch.json
    {
      "version": "0.2.0",
      "configurations": [
        {
          "name": "debug anki",
          "type": "debugpy",
          "request": "launch",
          "program": "${workspaceFolder}/runanki.py",
          "python": "${workspaceFolder}/venv/Scripts/python",
          "console": "internalConsole",
          "env": {
            "QT_FORCE_STDERR_LOGGING": "1"
          },
          "justMyCode": false
        }
      ]
    }
    

    按 <kbd>F5</kbd> 进行调试并自动运行 venv 环境中的 Anki,在 Anki 菜单栏 - Tools 中会多一个 Dict2Anki-ng-debug 选项,打开它即可调试插件。

    如果用 pdb 作为 debugger,可运行 python -m pdb runanki.py 进行调试。

测试

./test.sh

其中分别测试了 config.json version 1 和 version 2。

编辑 UI

使用 Qt Creator 导入 ./addon/UIForm/xxx.ui 设计 UI,然后生成对应的 xxx.py 文件

pyuic6 -o ./addon/UIForm/xxx.py ./addon/UIForm/xxx.ui

单独运行 UI(仅作为界面参考)

(cd .. && python -m Dict2Anki)