47 2
Sign in to rate

Fast Word Query: Multi-threaded queries for words from local or web dictionaries

0.16MB. Updated 2019-06-16. Supports both Anki 2.0.x and 2.1.x.

Description

Support for 2.0.x has been discontinued, will be updated add-on for 2.1.x only in the future. 因时间关系,本插件已停止针对Anki 2.0.x的更新维护,以后只针对Anki 2.1.x进行更新维护,不便之处敬请谅解! Home Page: https://sth2018.github.io/FastWordQuery Project Repo: https://github.com/sth2018/FastWordQuery If you have any questions, you can open issues HERE Supported Dictionaries 为单词添加真人发音(朗文mdx词典) This addon query words definitions or examples etc. fields from local or online dictionaries to fill into the Anki note. It forks from WordQuery, added multi-thread feature, improve stability, and some other features. Features Install Setting
  1. Click Menu "Tools -> Add-ons -> FastWQ -> Edit..."
  2. Edit the code and click Save
Config
  1. In Browser window click menu "FastWQ -> Options"
  2. Click Settings button in the Options window
    • Force Updates of all fields : Update all fields even if it's None
    • Ignore Accents : Ignore accents symbol of word in querying
    • Auto check new version : Check new version at startup
    • Number of Threads : The number of threads running at the same time
Usage
  1. Click menu "Tools -> FastWQ", or in Browser window click menu "FastWQ -> Options"
  2. Select note type
  3. Select Dictionary
  4. Select Fields
  5. Click OK button
  1. Select single or multiple words, click menu "FastWQ -> Query Selected" or press shortcut Default is Ctrl+Q.
  2. Waiting query finished
  1. Click Add button in Browser window, open Add window
  2. Edit key field and click Query button
Other Projects Used

Download

As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

To download this add-on, please copy and paste the following code into the desktop program:

1807206748

If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

Other Anki 2.0.x Add-Ons Other Anki 2.1.x Add-Ons Ask a Question

Reviews

on 1560766539
I use anki for language learning only because of this addon!
on 1560685219
very useful
on 1558535053
Directions are a little confusing, but the effect is achievable.
on 1558338442
great
on 1557453572
非常好用,感谢作者的付出!
on 1556498280
还想问下,1个单词多个音时候,第2个音可以取吗?本地字典在哪能下到,谢谢谢
on 1556327908
有的mdx识别不出来字段 我尝试用了2.0版本的 相同的单词却可以识别出字段 请大佬修复下
on 1555493068
so fucking good
on 1555134696
解决大问题,天天用。虽然用的迷迷糊糊的,有个自己的数据库,对应单词,能否实现从数据库里调相应的数据?
on 1555044606
在设置的时候读取不了fileds 所有的 fileds 都是只有 default 没有别的字段。请问这个问题如何解决?
on 1552278780
A great add-on. However the config disappears after I update it, and I have to re-select the note type.
on 1551969740
File "C:\Users\Lu\AppData\Roaming\Anki2\addons21\1807206748\libs\mdict\mdict_query.py", line 13, in <module>
import chardet
<class 'ModuleNotFoundError'>: No module named 'chardet'

错误已经找到解决办法:
找到 "C:\Users\Lu\AppData\Roaming\Anki2\addons21\1807206748\libs\mdict\mdict_query.py"文件,将第13行的"import chardet"注释掉,再启动就可以了。
on 1551686089
this is awesome, more than word query!
on 1551570556
1,目前用过的最好用的插件;
2,偶尔某些词典会失效抓不到值,希望可以隔几个月维护一次;
3,希望推荐一个最优配置;比如我现在例句什么的直接用爱词霸的例句+释义还好
on 1551146596
启动Anki时报错:

调试信息
Anki 2.1.5 Python 3.6.1 Qt 5.9.2 PyQt 5.9
Platform: Windows 10
Flags: frz=True ao=True sv=1

Caught exception:
File "aqt\main.py", line 170, in onOpenProfile
File "aqt\main.py", line 261, in loadProfile
File "anki\hooks.py", line 28, in runHook
File "C:\Users\Lu\AppData\Roaming\Anki2\addons21\1807206748\__init__.py", line 37, in start_here
from . import common as fastwq
File "C:\Users\Lu\AppData\Roaming\Anki2\addons21\1807206748\common.py", line 29, in <module>
from .gui import show_about_dialog, show_options # , check_updates
File "C:\Users\Lu\AppData\Roaming\Anki2\addons21\1807206748\gui\__init__.py", line 3, in <module>
from .common import *
File "C:\Users\Lu\AppData\Roaming\Anki2\addons21\1807206748\gui\common.py", line 28, in <module>
from ..service import service_manager, service_pool
File "C:\Users\Lu\AppData\Roaming\Anki2\addons21\1807206748\service\__init__.py", line 20, in <module>
from .manager import ServiceManager
File "C:\Users\Lu\AppData\Roaming\Anki2\addons21\1807206748\service\manager.py", line 24, in <module>
from .base import LocalService, MdxService, StardictService, WebService, service_wrap
File "C:\Users\Lu\AppData\Roaming\Anki2\addons21\1807206748\service\base.py", line 44, in <module>
from ..libs import MdxBuilder, StardictBuilder
File "C:\Users\Lu\AppData\Roaming\Anki2\addons21\1807206748\libs\__init__.py", line 1, in <module>
from .mdict import IndexBuilder as MdxBuilder
File "C:\Users\Lu\AppData\Roaming\Anki2\addons21\1807206748\libs\mdict\__init__.py", line 1, in <module>
from .mdict_query import IndexBuilder
File "C:\Users\Lu\AppData\Roaming\Anki2\addons21\1807206748\libs\mdict\mdict_query.py", line 13, in <module>
import chardet
<class 'ModuleNotFoundError'>: No module named 'chardet'
on 1551074027
Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site.
Debug info:
Anki 2.1.9 (ae67c976) Python 3.6.1 Qt 5.9.7 PyQt 5.9
Platform: Windows 7
Flags: frz=True ao=True sv=1

Caught exception:
File "aqt\progress.py", line 71, in handler
File "aqt\main.py", line 121, in setupProfile
File "aqt\main.py", line 262, in loadProfile
File "anki\hooks.py", line 29, in runHook
File "C:\Users\gtaa10339\AppData\Roaming\Anki2\addons21\1807206748\__init__.py", line 37, in start_here
from . import common as fastwq
File "C:\Users\gtaa10339\AppData\Roaming\Anki2\addons21\1807206748\common.py", line 29, in <module>
from .gui import show_about_dialog, show_options # , check_updates
File "C:\Users\gtaa10339\AppData\Roaming\Anki2\addons21\1807206748\gui\__init__.py", line 3, in <module>
from .common import *
File "C:\Users\gtaa10339\AppData\Roaming\Anki2\addons21\1807206748\gui\common.py", line 28, in <module>
from ..service import service_manager, service_pool
File "C:\Users\gtaa10339\AppData\Roaming\Anki2\addons21\1807206748\service\__init__.py", line 20, in <module>
from .manager import ServiceManager
File "C:\Users\gtaa10339\AppData\Roaming\Anki2\addons21\1807206748\service\manager.py", line 24, in <module>
from .base import LocalService, MdxService, StardictService, WebService, service_wrap
File "C:\Users\gtaa10339\AppData\Roaming\Anki2\addons21\1807206748\service\base.py", line 44, in <module>
from ..libs import MdxBuilder, StardictBuilder
File "C:\Users\gtaa10339\AppData\Roaming\Anki2\addons21\1807206748\libs\__init__.py", line 1, in <module>
from .mdict import IndexBuilder as MdxBuilder
File "C:\Users\gtaa10339\AppData\Roaming\Anki2\addons21\1807206748\libs\mdict\__init__.py", line 1, in <module>
from .mdict_query import IndexBuilder
File "C:\Users\gtaa10339\AppData\Roaming\Anki2\addons21\1807206748\libs\mdict\mdict_query.py", line 13, in <module>
import chardet
<class 'ModuleNotFoundError'>: No module named 'chardet'
on 1551006254
very well
on 1550569885
Perfect
on 1550145455
how awesome!!
it's totally useful!
on 1549263325
有一个错误发生了.请在按住shift键的同时启动Anki,这样可以临时的忽略掉你已经安装的插件。
如果仅仅是因为插件引起的问题,请选择工具>插件菜单项来将出错的的插件设置成失效,然后重启Anki,重复以上的步骤直到你发现了具体是哪个插件引起的问题。
当你已经发现是因为插件引起的问题,请在我们的支持网站上 add-ons section 上报告问题。
调试信息
Anki 2.1.8 (71e0c880) Python 3.7.2 Qt 5.12.0 PyQt 5.11.3
Platform: Linux
Flags: frz=False ao=True sv=1

Caught exception:
File "/home/mbol/.local/share/Anki2/addons21/1807206748/gui/options.py", line 95, in _before_build
service = service_pool.get(clazz.__unique__)
File "/home/mbol/.local/share/Anki2/addons21/1807206748/service/pool.py", line 39, in get
return self.manager.get_service(unique)
File "/home/mbol/.local/share/Anki2/addons21/1807206748/service/manager.py", line 52, in get_service
service = each()
File "/home/mbol/.local/share/Anki2/addons21/1807206748/service/base.py", line 203, in _service
return service(*args, **kwargs)
File "/home/mbol/.local/share/Anki2/addons21/1807206748/service/dict/cambridge_cs.py", line 9, in __init__
super(CambridgeCS, self).__init__()
File "/home/mbol/.local/share/Anki2/addons21/1807206748/service/dict/cambridge.py", line 14, in __init__
super(Cambridge, self).__init__()
<class 'TypeError'>: super(type, obj): obj must be an instance or subtype of type
on 1549175837
very helpful!thank you.
on 1549033038
强烈要求添加有道的词源内容,如果能提供及时的更新服务,这么棒的插件我愿意付费!
on 1548603468
下载了更新的版本但还是查询不了单词,然后换了台电脑就下载不了啊啊啊
on 1547544501
非常好用。很方便。谢谢!
简直太棒了!!!
on 1547345995
Great plugin to query words and better than the original Word Query plugin.
on 1546955199
Very very good!!!
on 1546392171
Someone knows how to change the language of the dictionaries, like English - Portuguese?
on 1544195662
填空部分同步到ios端后无法隐藏单词,但是在PC端就能正常隐藏,不知道为什么。还请帮忙看看,谢谢
on 1543771401
非常强大的应用,感谢作者的付出!如果可以的話,希望作者能夠新增沪江小D 的 日语 和 德语,感謝!!!
https://dict.hjenglish.com/
on 1542403858
Amazing
on 1541782117
希望增加韦氏词典的api
可以参考这个插件的做法
https://ankiweb.net/shared/info/2136497008
on 1540621997
Super fast! Great fork!
on 1539819474
great work
on 1539374533
Nice
on 1538033127
真的超级好用,不过我发现有些内置词典(例如剑桥英英、牛津、牛津学习词典)输入很多官网都有的单词它都不出字段来,没有搞懂这是为什么。
on 1537864691
一个插件发生了错误。
请把它报告在插件的论坛上:
https://anki.tenderapp.com/discussions/add-ons

Traceback (most recent call last):
File "aqt\main.py", line 165, in onOpenProfile
File "aqt\main.py", line 244, in loadProfile
File "anki\hooks.py", line 26, in runHook
File "C:\Users\����\AppData\Roaming\Anki2\addons\FastWQ.py", line 39, in start_here
import fastwq
File "C:\Users\����\AppData\Roaming\Anki2\addons\fastwq\__init__.py", line 25, in <module>
from .gui import show_options, show_about_dialog, check_updates
File "C:\Users\����\AppData\Roaming\Anki2\addons\fastwq\gui\__init__.py", line 3, in <module>
from .common import *
File "C:\Users\����\AppData\Roaming\Anki2\addons\fastwq\gui\common.py", line 24, in <module>
from .options import OptionsDialog
File "C:\Users\����\AppData\Roaming\Anki2\addons\fastwq\gui\options.py", line 33, in <module>
from ..service import service_manager, service_pool
File "C:\Users\����\AppData\Roaming\Anki2\addons\fastwq\service\__init__.py", line 24, in <module>
service_manager = ServiceManager() # Service Manager
File "C:\Users\����\AppData\Roaming\Anki2\addons\fastwq\service\manager.py", line 40, in __init__
self.update_services()
File "C:\Users\����\AppData\Roaming\Anki2\addons\fastwq\service\manager.py", line 48, in update_services
self.web_services, self.local_custom_services = self._get_services_from_files()
File "C:\Users\����\AppData\Roaming\Anki2\addons\fastwq\service\manager.py", line 68, in _get_services_from_files
mypath = os.path.join(os.path.dirname(os.path.realpath(__file__)), service_path)
File "ntpath.py", line 85, in join
File "encodings\utf_8.py", line 16, in decode
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd7 in position 7: invalid continuation byte
on 1537412632
its convenient and fast.
on 1536461532
very useful automation!
on 1536156423
Thank a lot! a godsend add-on!
on 1536121849
真的非常感謝作者提供這麼好用的add-on
on 1535612289
Great work and many thanks
on 1534628170
继续加油,谢谢作者
on 1534503498
又快又好~~~~
on 1533729410
FASTER
很快,插朗文音频节省时间,比AW、WQ快多了。
on 1533173537
一个插件发生了错误。
请把它报告在插件的论坛上:
https://anki.tenderapp.com/discussions/add-ons

Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Roaming\Anki2\addons\fastwq\libs\ankihub.py", line 60, in <lambda>
self.update.clicked.connect(lambda:answer())
File "C:\Users\Administrator\AppData\Roaming\Anki2\addons\fastwq\libs\ankihub.py", line 54, in answer
callback(self.appendHtml, self.finish)
File "C:\Users\Administrator\AppData\Roaming\Anki2\addons\fastwq\libs\ankihub.py", line 122, in callback
meta = response.info()
AttributeError: 'NoneType' object has no attribute 'info'
on 1533013870
很好,作者更新也很勤快~
on 1532331923
确实好用,查询速度很快
on 1531921734
非常强大的应用,感谢作者的付出!

另,批量查询时,在遇到查询不到的单词时,插件会中断查询,并显示下列错误信息:

一个插件发生了错误。
请把它报告在插件的论坛上:
https://anki.tenderapp.com/discussions/add-ons

Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Roaming\Anki2\addons\fastwq\query\worker.py", line 62, in run
results, success_num, missed_css = query_all_flds(note)
File "C:\Users\Administrator\AppData\Roaming\Anki2\addons\fastwq\query\common.py", line 216, in query_all_flds
qr = service.active(task['f'], task['w'])
File "C:\Users\Administrator\AppData\Roaming\Anki2\addons\fastwq\service\base.py", line 245, in active
return self.actions[fld_ord]()
File "C:\Users\Administrator\AppData\Roaming\Anki2\addons\fastwq\service\base.py", line 92, in _deco
res = fld_func(self, *args, **kwargs)
File "C:\Users\Administrator\AppData\Roaming\Anki2\addons\fastwq\service\bing3tp.py", line 38, in fld_phonetic_us
return seg.get('AmE', u'')
AttributeError: 'NoneType' object has no attribute 'get'
on 1531664677
查询比WQ快多了,而且反映问题后,作者很快就能修正。还有很多的WQ没有的功能。

在此向作者致谢!