Dict2Anki-ng(有道,欧路词典单词本同步工具)

AnkiWeb addon 107281012

Fork of Dict2Anki(有道,欧陆词典单词本同步工具)

3 other versions of this addon exist. Compare versions ↓

Syncs Youdao and Eudic vocabulary lists into Anki, automatically adding or removing cards and fetching images, pronunciation, definitions, phonetics, phrases and example sentences.
AI-generated summary; may contain mistakes.

card-creationimportsync-integrationdictionaryfork-or-reuploadservice-client

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
13 (👍 11 · 👎 2)
Updated
2026-10-08
Anki versions
26.09.3~
License
Not found (this does not mean that the addon has no license)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, Handlebars, CSS, JSON
Description language
zh

Maintenance

active

  • Last update or commit: 2026-10-27 (5 days before the snapshot).
  • Test files: 10.
  • GitHub Actions workflows: 1.
  • Commits in the last year: 64.
  • Issues: 2 open, 5 closed.
  • Pull requests: 0 open, 3 merged.
  • Median first response: 13 hours (6 answered issues and pull requests).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
25.0226.052026-06-29
26.05.126.09.3+2026-10-08
History across monthly snapshots

Loading…

Compare versions

The original addon and its forks. The best value in each column is in bold.

VersionWorks on Anki 26.09.3MaintenanceLast activity VotesApprovalGitHub starsNotes
Dict2Anki(有道,欧陆词典单词本同步工具) original unknown abandoned 28 May 2024 👍 182 · 👎 45 75% 198 archived
↳ Dict2Anki (Fork) (AI-detected; may be wrong) supported stale 9 Jan 2025 👍 40 · 👎 0 91% 13 beta
↳ (⚠️Broken) 🐼Dict2Anki - 有道,欧陆词典单词本同步工具 (Fixed by Shigeඞ) (AI-detected; may be wrong) likely abandoned 26 Feb 2024 👍 32 · 👎 1 85% – obsolete
↳ Dict2Anki-ng(有道,欧路词典单词本同步工具) this addon supported active 27 Oct 2026 👍 11 · 👎 2 58% 12

Forks can add features or work in a different way. Read the description before you change to another version. Fork detection is incomplete, so other versions can exist.

Similar addons

ci

Syncs Youdao and Eudic dictionary vocabulary lists into Anki cards with images, audio, phonetics, phrases and example sentences, automatically adding or removing cards as words change.

card-creationimportsync-integrationdictionaryservice-client

1 votes 0% approval 👍 0 · 👎 1 Updated 2019-03-18
Korean Native Audio

Fetches recorded Korean dictionary pronunciations into chosen Anki fields, with configurable note-type mappings, optional ElevenLabs text-to-speech, and Naver, KRDICT, and Forvo sources.

card-creationsync-integrationdictionary

6 votes 44% approval 👍 5 · 👎 1 ⭐ 0 Anki 25.09.4~ Updated 2026-07-29

Description

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

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

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

Features

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

How to install

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

How to use

同步
同步

同步删除
同步删除

字段修复
字段修复

Change log

  • v7.4.3
    • 修复高级配置字段可能不会获取下一个 API 的问题
  • v7.4.2
    • 最低支持 Python 版本 3.10,最低支持 Anki 版本 26.05
    • 【修复】页面支持筛选
    • 增加【模板】和预览页面,方便查看、应用默认模板的更新
    • 更新默认模板:自动隐藏空字段;新增字段值对应的 class 样式
    • 更新字段值:新增 class 方便控制样式
    • 支持加载 user_files 文件夹中的第三方词典和 API 模块
    • 增加【高级配置】,支持每个字段查询不同的 API
  • 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 @xbot
  • v6.1.5
    • 更新有道词典API,解决首次登录无法唤出登陆页的问题
  • v6.1.4
    • 修复Anki 2.1.4版本同步失败的问题 THX to @YLongo
    • 修复Anki 2.1.4版本首次同步默认到Default Deck的问题
  • v6.1.3 修复欧路字典无法登录的问题 THX to @cythb
  • v6.1.2 修复有道单词本分组获取失败的问题
  • v6.1.1 添加欧路词典查询API THX to @wd
  • v6.1.0
    • 支持第三方登陆
    • 加入模版字段检查
  • v6.0.2 添加英英注释 THX to deluser8
  • v6.0.1 修复菜单栏不雅词汇
  • v6.0.0
    • 导入指定单词分组
    • 添加必应(bing)词典查询API
    • 添加待删除单词列表,可选择需要删除的 Anki 卡片
    • 恢复卡片 短语字段
    • 一些UI优化
    • 重构代码,解决上版本奔溃问题
    • 添加单元测试

README

Dict2Anki-ng

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

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

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

Features

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

How to install

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

How to use

同步
同步

同步删除
同步删除

字段修复
字段修复

Change log

  • v7.4.3
    • 修复高级配置字段可能不会获取下一个 API 的问题
  • v7.4.2
    • 最低支持 Python 版本 3.10,最低支持 Anki 版本 26.05
    • 【修复】页面支持筛选
    • 增加【模板】和预览页面,方便查看、应用默认模板的更新
    • 更新默认模板:自动隐藏空字段;新增字段值对应的 class 样式
    • 更新字段值:新增 class 方便控制样式
    • 支持加载 user_files 文件夹中的第三方词典和 API 模块
    • 增加【高级配置】,支持每个字段查询不同的 API
  • 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 @xbot
  • v6.1.5
    • 更新有道词典API,解决首次登录无法唤出登陆页的问题
  • v6.1.4
    • 修复Anki 2.1.4版本同步失败的问题 THX to @YLongo
    • 修复Anki 2.1.4版本首次同步默认到Default Deck的问题
  • v6.1.3 修复欧路字典无法登录的问题 THX to @cythb
  • v6.1.2 修复有道单词本分组获取失败的问题
  • v6.1.1 添加欧路词典查询API THX to @wd
  • 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.10

安装依赖

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\addon
      
    • Linux:

      ln -s full/path/to/project_root/addon "$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
        }
      ]
    }
    

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

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

测试

./test.sh

编辑 UI

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

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

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

python ./__main__.py