Bỏ qua đến nội dung

JPDB Anki Importer

Chờ xử lý #anki #addon #jpdb #importer
https://github.com/llvtt/jpdb_anki_import
27/2/2025

Cách tải addon JPDB Anki Importer

Bạn có thể tải addon bằng một trong hai cách sau:

Click nút Copy bên dưới để copy code vào clipboard

541896873

Sau đó mở Anki → Tools → Add-ons → Get Add-ons → Dán code → OK

Mở trang addon trên AnkiWeb và tìm mã code ở cuối trang

Mở trên AnkiWeb

Cuộn xuống cuối trang AnkiWeb, tìm dòng có mã code 541896873 và copy

4

Mô tả chi tiết

Github: https://github.com/llvtt/jpdb_anki_import/

jpdb_anki_import Overview

An Anki plugin that imports review history for words studied in JPDB. Currently working as of Anki 2.60.0.

This plugin imports the following information:

Japanese spelling (e.g. 言葉) Japanese reading (e.g. ことば) Review history, accomplished by simulating the same button answer responses in Anki.

There’s also an experimental option to scrape your existing cards in JPDB for more information that can be enabled in the setup window. This allows importing:

Card definitions Custom sentence Notes

This plugin does not import audio or pitch accent, but see the “Recommended Additional Plugins” section for some tips on plugins that can generate these for you!

Usage Download your JPDB review history by going to the settings page and clicking “Export vocabulary reviews (.json)” near the bottom of the page. Create a new Anki deck where you want to import your JPDB cards. After installing this add-on, in Anki, go to “Tools” => “Import from JPDB” Follow the instructions in the setup window. Building

To build the package, run python3 build.py in the command line which will generate the add-on file jpdb_anki_import.ankiaddon.

Testing

To test the file in Anki, perform the following steps:

Open Anki and click on “Tools” in the top menu bar. Select “Add-ons” from the dropdown menu. Click on “Install from file…” Navigate to the directory where the jpdb_anki_import.ankiaddon file was generated, and select it. Click “Open” to install the addon. Restart Anki if prompted to do so. Recommended Additional Plugins

The following other Anki plugins can help flesh out cards created after the import to add translation and more detail:

Automatic Japanese Dictionary Lookup adds English definitions for Japanese words Japanese Example Sentences adds example Japanese sentences. AwesomeTTS adds Japanese audio for words. Japanese Pitch Accent adds pitch accent diagrams. Changelog 1.1.0

This version adds a new optional feature to scrape information from JPDB. This includes

definitions custom sentence notes

Because this relies on HTML scraping, it’s quite brittle and could break if JPDB changes its HTML structure. Alas, there is no public API yet for this information.

In order to use this feature, one needs to obtain the login cookie information from a logged-in browser session. Instructions on how to do this are linked to from the setup window and are included in the wiki.

1.0.2 Fix parsing review json when using JPDB pass/fail system 1.0.1 Fix Windows and latest Anki version compatibility (special thanks to KaranveerB!)


Liên kết hỗ trợ


Reviews (4)

👍 2026-01-31

Would love to use it since JPDB algorithm doesn’t hit quite right as Anki for me but for some reason didn’t work properly. Rather than the Japanese word on the card’s front it’s just the word type and meaning of it instead eg: “Verb (5-dan, む)

to cross (legs or arms); to link (arms) to put together; to construct; to assemble; to produce (e.g. TV program) to braid; to plait to grapple; to wrestle to unite; to join; to link up; to form an alliance to set (e.g. type) to issue (e.g. money order)” a

👍 2025-12-31

This is a great add-on, mine is importing all in kana though and I would like the kanji as well. Is there something I can do on my end to fix this?

👍 2023-09-02

Thank you, I had the same error and your recommendation fixed it. Thanks!

👍 2023-04-04

Had this error happen:

==========================================

Anki 2.1.56 (07fd88dd) Python 3.9.15 Qt 6.4.0 PyQt 6.4.0

Platform: Windows-10-10.0.19044

Flags: frz=True ao=True sv=3

Add-ons, last update check: 2023-04-04 13:46:48

Caught exception:

Traceback (most recent call last):

File “C:\Users\admin\AppData\Roaming\Anki2\addons21\541896873_init_.py”, line 30, in import_jpdb

stats = imp.run()

File “C:\Users\admin\AppData\Roaming\Anki2\addons21\541896873\importer.py”,