Convert eijiro text data into sqlite3
Project description
eijiro-to-sqlite
- 英辞郎 -> sqlite3
- Sample data: 0 JPY
- 英辞郎 Ver.144.8: 495 JPY
Screenshot
Install
pip install e2s
Run
wget 'https://www.eijiro.jp/eijiro-sample-1448.zip' # sample data
unzip eijiro-sample-1448.zip
e2s -i EIJIRO-SAMPLE-1448.TXT # `eijiro.db` will be created
Help
$ e2s -h
usage: e2s [-h] [-i TXT] [-o DB] [-j JOINER] [-O] [-V]
Convert eijiro(英辞郎) text data into sqlite3
optional arguments:
-h, --help show this help message and exit
-i TXT, --input TXT Source file (default: EIJIRO-1448.TXT)
-o DB, --out DB Output DB file (default: eijiro.db)
-j JOINER, --joiner JOINER Joiner for descriptions (default: ^^^)
-O, --overwrite Overwrite db (default: False)
-V, --version show program's version number and exit
Schema
CREATE TABLE word (
id integer primary key,
word text,
meaning text,
descriptions text
)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
e2s-0.4.tar.gz
(4.2 kB
view hashes)
Built Distribution
e2s-0.4-py3-none-any.whl
(4.6 kB
view hashes)