Jeju National University meal data crawler
Project description
jejunuMeals
제주대학교 학식 조회 모듈
Lookup meals data for Jeju National University.
Install
$ pip install jejunuMeals
Usage
>>> from jejunuMeals import JejunuMeals
>>> from pprint import pprint
>>> pprint(JejunuMeals().menus())
{0: {'저녁': {'양식': '없음',
'정식': '현미밥\n멸치된장찌개\n돼지고기야채볶음(pork)\n톳무침\n김치',
'중식': '없음',
'특식': '없음'},
'점심': {'양식': '없음',
'정식': '마파두부덮밥(pork)\n달걀파국\n오이생채\n김치',
'중식': '없음',
'특식': '현미밥\n설렁탕(beef)\n씨리얼과일샐러드\n오징어포아몬드볶음\n콩나물무침\n김치'}},
1: {'저녁': {'양식': '없음',
'정식': '쌀밥\n순두부찌개(pork)\n안동찜닭(chicken)\n취나물무침\n김치',
'중식': '없음',
'특식': '없음'},
'점심': {'양식': '없음',
'정식': '닭가슴살카레라이스(chicken)\n배추된장국\n어묵채볶음\n김치',
'중식': '없음',
'특식': '보리밥\n불고기백반(pork)\n배추된장국\n꽈리고추멸치볶음\n무생채\n상추,깻잎/쌈\n김치'}},
2: {'저녁': {'양식': '없음',
'정식': '검정쌀밥\n쇠고기미역국(beef)\n섭산적데리야끼구이\n참나물사과초무침\n김치',
'중식': '없음',
'특식': '없음'},
'점심': {'양식': '없음',
'정식': '에그스크램블볶음밥\n무된장국\n자장떡볶음\n김치',
'중식': '없음',
'특식': '검정쌀밥\n뚝배기김치찌개(pork)\n생선가스/소스\n숙주삼색나물\n오이된장무침\n김치'}},
3: {'저녁': {'양식': '없음',
'정식': '쌀밥\n배추된장국\n쇠고기떡볶음(beef)\n무말랭이무침\n김치',
'중식': '없음',
'특식': '없음'},
'점심': {'양식': '없음',
'정식': '참치마요덮밥\n미소장국\n매운콩나물무침\n김치',
'중식': '없음',
'특식': '차조밥\n해물뚝배기\n탕수육(pork)\n쫄면야채무침\n유채나물무침\n김치'}},
4: {'저녁': {'양식': '없음',
'정식': '혼합잡곡밥\n순댓국(pork)\n어묵맛살초무침\n달걀야채말이\n김치',
'중식': '없음',
'특식': '없음'},
'점심': {'양식': '없음',
'정식': '소불고기덮밥(beef)\n열무된장국\n미역양파초무침\n김치',
'중식': '없음',
'특식': '혼합잡곡밥\n사골우거지해장국(beef)\n제육두부김치(pork)\n브로콜리맛살무침\n도라지무생채\n김치'}}}
API
JejunuMeals().menus()
Fetch meal data of specific weekday.
>>> from jejunuMeals import JejunuMeals
>>> from datetime import date
>>> from pprint import pprint
>>> pprint(JejunuMeals().menus(date.today().weekday()))
{'저녁': {'양식': '없음',
'정식': '보리밥\n북어콩나물국\n돼지고기두루치기(pork)\n돌자반김볶음\n김치',
'중식': '없음',
'특식': '없음'},
'점심': {'양식': '없음',
'정식': '베이컨야채볶음밥\n무된장국\n쫄면야채무침\n김치',
'중식': '없음',
'특식': '보리밥\n우거지갈비탕(beef)\n멕시칸샐러드\n감자꽈리고추조림\n톳무침\n김치'
}}
Parameter (optional)
The weekday on which you want to fetch meal data.
This value only valid in between 0 and 4. if empty or greater than 4, return all menus.
JejunuMeals().daily()
Just an alias of JejunuMeals().menus()
Save to yaml
You shoud install before pip install pyYaml
import yaml
noalias = yaml.dumper.SafeDumper
noalias.ignore_aliases = lambda self, data: True
with open('output.yaml', 'w') as outfile:
yaml.dump(JejunuMeals().menus(), outfile, default_flow_style=False, allow_unicode=True, Dumper=noalias)
jejunuMeals is primarily distributed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file jejunuMeals-1.3-py3-none-any.whl
.
File metadata
- Download URL: jejunuMeals-1.3-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8405188c7c1e9386f09b4793cb6e4caf97d15118689515ae210c8934292db2d3 |
|
MD5 | db31abae26458b6c5e24f081d1d691ee |
|
BLAKE2b-256 | d1ae4dd909db6cf42eed150e99c316930879ce397c13c5aed04bf3d66d6fc640 |