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:
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!)