Skip to content

Script to scrape data from jisho.org, a comprehensive Japanese-English dictionary.

License

Notifications You must be signed in to change notification settings

maxwellmattryan/jisho-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation

Jisho Search

CAUTION: I have not included any sleep methods, so if you use this please be polite to the servers and add it in!

This Python script allows for the scraping of dictionary entries of a given JLPT (Japanese Language Proficiency Test) level from Jisho.org. The specific data scraped includes kanji, furigana, meaning, part of speech, and commonality. The script outputs both to the console and an excel file according to the specified JLPT level.

Resultant spreadsheets can be found here.

How To Use

Installation

You will need to install the following libraries in order to run the script.

pip install bs4 requests xlwt lxml

Execution

Before starting, make sure you are in the root folder of the repository. Begin by running script with either the python or python3 commands, like:

python3 JishoSearch.py

This will result in two prompts:

  • JLPT Level: the intended JLPT level to use in scraping, and the other for if you would like to include only common words (use single digit input or phoenetic spelling)
  • Commonality: determines if the scraper should include or ignore words that are uncommon but still within the specified JLPT level

The results will be written to a file of the naming convention, jlpt-n<1..5>.xls, within a sheets directory. Happy scraping!

Acknowledgments

  • This was my first script to utilize web scraping and ended up being quite enjoyable for me.
  • Extracting dictionary entries of Japanese words (specifically according to JLPT level) into a spreadsheet is useful for studying for a specific certification of said JLPT level.
  • Jisho.org is a fantastic resource that has been considerably helpful prior to writing this script - would recommend to anyone interested in or currently learning Japanese.

Please do not hesitate to reach out should you have any questions. Thank you very much for reading !

About

Script to scrape data from jisho.org, a comprehensive Japanese-English dictionary.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages