Jisho Scraper For Anki is a web scraper to create Anki notes for Japanese vocabulary
and kanji from Jisho links. It reads Jisho links line by line from a .txt file and outputs
a bundle of notes as a .csv file to be imported to Anki. Fields include html scraped from Jisho, used with
styling of Jisho to create notes which look like Jisho pages with some custom changes. Check
- Python 3.8 or above
- Python modules requests and Beautiful Soup 4
-
Create a note type in Anki with following fields: {Word, Furigana, Sound, Jisho Tags, Meanings, Kanji In Word}
-
Use the html from this gist for the back template of cards.
-
Use the CSS from this gist to make back of the cards look like Jisho pages.
-
Set
ANKI_MEDIA_PATHto Ankicollection.mediafolder path as an environment variable. Refer to related Anki docs page where this folder might be according to your operating system. -
Create a
.txtfile. Write Jisho links you want to make into notes line by line.https://jisho.org/word/%E7%9C%BC%E9%8F%A1 https://jisho.org/word/%E6%9C%AC%E6%A3%9A https://jisho.org/word/%E5%A4%A7%E4%B8%88%E5%A4%AB -
Run
main.pywith your input/output pathpython main.py -I YOUR/PATH/jisho_links.txt -O YOUR/PATH/anki_notes.csv --to_card vocab -
Import
.csvfile into Anki with these settings:
- Fields seperated by: Comma
- Uncheck 'Allow HTML in fields'
- Make sure all 6 fields are mapped correctly
- Create a note type in Anki with following fields: {Kanji, Description, Kun, On, Level, Link}
- Use html from this gist for the back template of cards.
- Use the CSS from this gist.
- Create a
.txtfile that contains Jisho links like as before. - Run
main.pywith--to_card kanjiflag instead. - Import
.csvfile the same way.
Outputs a .txt file that contains links from all kanji search results from the link. You can later use it to create kanji cards for Anki.
-
Run
main.pywith your output path and kanji search linkpython main.py -O /YOUR/PATH/kanjilist.txt --list kanji -u "https://jisho.org/search/%23kanji%20%23jinmei"
-
Run
main.pywith your output path and verb search linkpython main.py -O /YOUR/PATH/verbinf_notes.csv --verb_inflections