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김치',
'중식': '없음',
'특식': '없음'},
'점심': {'양식': '없음',
'정식': '베이컨야채볶음밥\n무된장국\n쫄면야채무침\n김치',
'중식': '없음',
'특식': '보리밥\n우거지갈비탕(beef)\n멕시칸샐러드\n감자꽈리고추조림\n톳무침\n김치'}},
1: {'저녁': {'양식': '없음',
'정식': '보리밥\n북어콩나물국\n돼지고기두루치기(pork)\n돌자반김볶음\n김치',
'중식': '없음',
'특식': '없음'},
'점심': {'양식': '없음',
'정식': '베이컨야채볶음밥\n무된장국\n쫄면야채무침\n김치',
'중식': '없음',
'특식': '보리밥\n우거지갈비탕(beef)\n멕시칸샐러드\n감자꽈리고추조림\n톳무침\n김치'}},
2: {'저녁': {'양식': '없음',
'정식': '보리밥\n북어콩나물국\n돼지고기두루치기(pork)\n돌자반김볶음\n김치',
'중식': '없음',
'특식': '없음'},
'점심': {'양식': '없음',
'정식': '베이컨야채볶음밥\n무된장국\n쫄면야채무침\n김치',
'중식': '없음',
'특식': '보리밥\n우거지갈비탕(beef)\n멕시칸샐러드\n감자꽈리고추조림\n톳무침\n김치'}},
3: {'저녁': {'양식': '없음',
'정식': '보리밥\n북어콩나물국\n돼지고기두루치기(pork)\n돌자반김볶음\n김치',
'중식': '없음',
'특식': '없음'},
'점심': {'양식': '없음',
'정식': '베이컨야채볶음밥\n무된장국\n쫄면야채무침\n김치',
'중식': '없음',
'특식': '보리밥\n우거지갈비탕(beef)\n멕시칸샐러드\n감자꽈리고추조림\n톳무침\n김치'}},
4: {'저녁': {'양식': '없음',
'정식': '보리밥\n북어콩나물국\n돼지고기두루치기(pork)\n돌자반김볶음\n김치',
'중식': '없음',
'특식': '없음'},
'점심': {'양식': '없음',
'정식': '베이컨야채볶음밥\n무된장국\n쫄면야채무침\n김치',
'중식': '없음',
'특식': '보리밥\n우거지갈비탕(beef)\n멕시칸샐러드\n감자꽈리고추조림\n톳무침\n김치'}}}
{'저녁': {'양식': '없음',
'정식': '보리밥\n북어콩나물국\n돼지고기두루치기(pork)\n돌자반김볶음\n김치',
'중식': '없음',
'특식': '없음'},
'점심': {'양식': '없음',
'정식': '베이컨야채볶음밥\n무된장국\n쫄면야채무침\n김치',
'중식': '없음',
'특식': '보리밥\n우거지갈비탕(beef)\n멕시칸샐러드\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 GNU Affero General Public License v3.0 or any later version. See COPYRIGHT for details.
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.2.1-py3-none-any.whl
.
File metadata
- Download URL: jejunuMeals-1.2.1-py3-none-any.whl
- Upload date:
- Size: 3.3 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 | 5f6aefc5889a80e80001ec359a9cfbf1338db6ae06a2ed6495e21269fc2990ed |
|
MD5 | 3c4b690490a63ef86a63e361c29d7298 |
|
BLAKE2b-256 | 43265a5c7f5c926f10b76c30bcb7715e7948f4f61312fff7982bf9c077447e43 |