Skip to main content

Jeju National University meal data crawler

Project description

jejunuMeals

Travis (.org) branch PyPI version PyPI - Python Version GitHub issues

제주대학교 학식 조회 모듈

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',
            '정식': '\n검정쌀밥\n꽃게탕\n닭고기떡조림(chicken)\n유채나물무침\n김치\n',
            '중식': '\n없음\n',
            '특식': '\n없음\n'},
     '점심': {'양식': '\n없음\n',
            '정식': '\n마파두부덮밥(pork)\n무된장국\n비빔만두\n김치\n',
            '중식': '\n삼계탕\n양파장아찌\n김치\n',
            '특식': '\n검정쌀밥\n돼지갈비찜(pork)\n무된장국\n꽈리고추멸치볶음\n오이된장무침\n김치\n'}},
 1: {'저녁': {'양식': '\n없음\n',
            '정식': '\n쌀밥\n북어콩나물국\n돼지고기야채볶음(pork)\n시금치들깨무침\n김치\n',
            '중식': '\n없음\n',
            '특식': '\n없음\n'},
     '점심': {'양식': '\n없음\n',
            '정식': '\n김치볶음밥(pork)\n취나물된장국\n자장떡볶음\n김치\n',
            '중식': '\n삼계탕\n양파장아찌\n김치\n',
            '특식': '\n현미밥\n해물순두부뚝배기\n닭오븐구이(chicken)\n고춧잎무침\n미역양파초무침\n김치\n'}},
 2: {'저녁': {'양식': '\n없음\n', '정식': '\n없음\n', '중식': '\n없음\n', '특식': '\n없음\n'},
     '점심': {'양식': '\n없음\n',
            '정식': '\n현    충    일\n',
            '중식': '\n없음\n',
            '특식': '\n없음\n'}},
 3: {'저녁': {'양식': '\n없음\n',
            '정식': '\n쌀밥\n어묵탕\n쇠고기야채볶음(beef)\n톳무침\n김치\n',
            '중식': '\n없음\n',
            '특식': '\n없음\n'},
     '점심': {'양식': '\n없음\n',
            '정식': '\n닭갈비덮밥(chicken)\n배추된장국\n쥐치채볶음\n김치\n',
            '중식': '\n삼계탕\n양파장아찌\n김치\n',
            '특식': '\n보리밥\n돼지고기수육(pork)\n배추된장국\n양파겨자소스\n콩나물무침\n상추,깻잎/쌈\n김치\n'}},
 4: {'저녁': {'양식': '\n없음\n',
            '정식': '\n차조밥\n참치김치찌개\n돼지고기모듬장조림(pork)\n열무된장무침\n김치\n',
            '중식': '\n없음\n',
            '특식': '\n없음\n'},
     '점심': {'양식': '\n없음\n',
            '정식': '\n베이컨야채볶음밥\n달걀파국\n쫄면야채무침\n김치\n',
            '중식': '\n삼계탕\n양파장아찌\n김치\n',
            '특식': '\n차조밥\n쇠고기된장뚝배기(beef)\n과일야채샐러드\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',
        '정식': '\n차조밥\n참치김치찌개\n돼지고기모듬장조림(pork)\n열무된장무침\n김치\n',
        '중식': '\n없음\n',
        '특식': '\n없음\n'},
 '점심': {'양식': '\n없음\n',
        '정식': '\n베이컨야채볶음밥\n달걀파국\n쫄면야채무침\n김치\n',
        '중식': '\n삼계탕\n양파장아찌\n김치\n',
        '특식': '\n차조밥\n쇠고기된장뚝배기(beef)\n과일야채샐러드\n우엉채볶음\n동초나물무침\n김치\n'
}}

Parameter

weekday (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
with open('output.yaml', 'w') as outfile:
    yaml.dump(JejunuMeals().menus(), outfile, default_flow_style=False, allow_unicode=True)

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jejunuMeals-1.2.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file jejunuMeals-1.2.tar.gz.

File metadata

  • Download URL: jejunuMeals-1.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3

File hashes

Hashes for jejunuMeals-1.2.tar.gz
Algorithm Hash digest
SHA256 bbc48a4b76ae6809afd4c5d5a4331ea8ec96a1fa9b1bf575d231f9a9afb64fc0
MD5 6d694d428ee365e824942c39a4a93752
BLAKE2b-256 57619810078c9ee9d20ed7e9a4ecadd5a8eab023089f54df7aaeedeaefd4bdae

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page