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.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

jejunuMeals-1.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jejunuMeals-1.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

File hashes

Hashes for jejunuMeals-1.1.tar.gz
Algorithm Hash digest
SHA256 cfb9acda9e6cdbc90b9b538b39c3f6e7ea33907307bee65e29a972fb48620316
MD5 599ee04ee16fa52a5fdc2abf808802cc
BLAKE2b-256 e78751653bc54341e506cebc5e56028a4682235fbbbc07eeb3df6d714fe849e8

See more details on using hashes here.

File details

Details for the file jejunuMeals-1.1-py3-none-any.whl.

File metadata

  • Download URL: jejunuMeals-1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

File hashes

Hashes for jejunuMeals-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5521ba62c98c58f6ea482c8c1e4c480699579911007be8510bb675cd025a1148
MD5 c4399fcab7fd223899a030044ee05c87
BLAKE2b-256 eac9137f02820032ee70c009c267a835996614f78568ad95e7e96b104d34c0cc

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