https://github.com/t3yamoto/sushi-allergy-parser
sushi-allergy-parser is a parser for allergy infomation document of japanese conveyor-belt sushi chain.
https://github.com/t3yamoto/sushi-allergy-parser
poetry python sushi tabula-py
Last synced: 5 months ago
JSON representation
sushi-allergy-parser is a parser for allergy infomation document of japanese conveyor-belt sushi chain.
- Host: GitHub
- URL: https://github.com/t3yamoto/sushi-allergy-parser
- Owner: t3yamoto
- License: mit
- Created: 2019-09-24T15:30:21.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-22T04:46:56.000Z (almost 6 years ago)
- Last Synced: 2025-12-07T23:43:30.643Z (8 months ago)
- Topics: poetry, python, sushi, tabula-py
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/chezou/tabula-py), so you should install Java(7 or 8).
## Installation
```sh
$ pip install sushi-allergy-parser
```
## Usage
```python
>>> from sushi_allergy_parser import SushiroAllergyParser
>>> df = SushiroAllergyParser().parse()
>>> type(df)
>>> 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
```