sushi-allergy-parser is a parser for allergy infomation document of japanese conveyor-belt sushi chain.
Project description
sushi-allergy-parser
sushi-allergy-parser
is a parser for allergy infomation document of japanese conveyor-belt sushi chain. Currently, the following documents are supported.
- スシロー (http://www3.akindo-sushiro.co.jp/pdf/menu/allergy.pdf)
- くら寿司 (http://www.kura-corpo.co.jp/common/pdf/kura_allergen.pdf)
Requirements
sushi-allergy-parser
depends on tabula-py, so you should install Java(7 or 8).
Installation
$ pip install sushi-allergy-parser
Usage
>>> from sushi_allergy_parser import SushiroAllergyParser >>> df = SushiroAllergyParser().parse() >>> type(df) <class 'pandas.core.frame.DataFrame'> >>> df category name egg ... gelatin sesame cashewNut 0 にぎり 合鴨ロースの煮込み NOT_CONTAIN ... NOT_CONTAIN NOT_CONTAIN NOT_CONTAIN 1 にぎり 赤えび NOT_CONTAIN ... NOT_CONTAIN NOT_CONTAIN NOT_CONTAIN 2 にぎり あじ NOT_CONTAIN ... NOT_CONTAIN NOT_CONTAIN NOT_CONTAIN 3 にぎり あじ(ネギ・生姜) NOT_CONTAIN ... NOT_CONTAIN NOT_CONTAIN NOT_CONTAIN 4 にぎり 穴子天ぷらにぎり MAY_CONTAIN ... MAY_CONTAIN MAY_CONTAIN NOT_CONTAIN .. ... ... ... ... ... ... ... 319 その他 天つゆ NOT_CONTAIN ... MAY_CONTAIN MAY_CONTAIN NOT_CONTAIN 320 その他 粉末緑茶 NOT_CONTAIN ... NOT_CONTAIN NOT_CONTAIN NOT_CONTAIN 321 その他 ぽん酢 NOT_CONTAIN ... NOT_CONTAIN MAY_CONTAIN NOT_CONTAIN 322 その他 わかめ NOT_CONTAIN ... NOT_CONTAIN NOT_CONTAIN NOT_CONTAIN 323 その他 わさび MAY_CONTAIN ... MAY_CONTAIN NOT_CONTAIN NOT_CONTAIN
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size sushi_allergy_parser-0.1.1-py3-none-any.whl (6.6 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size sushi-allergy-parser-0.1.1.tar.gz (4.8 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for sushi_allergy_parser-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e974354bbf1f20961f27ac10e211e36d4de6a329e769fde16b2095344a214907 |
|
MD5 | 92fb52d2d441eda2c71a398be5879de1 |
|
BLAKE2-256 | 213f4a35a3447fba04892a4f9ca0a21fa2e1f7ec33c152739f79befe33b0e47d |
Close
Hashes for sushi-allergy-parser-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2930dc51a298bb973ce8cf81f5c9464182c9524859e9d410c241867b2b066f1 |
|
MD5 | 9ba00f77596a893be4e93d81b3abc1de |
|
BLAKE2-256 | ec8c1797a8dd0dde594262f1cc3cc0f61bf238fb4336808ce0b2e221b5388271 |