Skip to main content

open-neis-api wrapping with aiohttp

Project description

open-neis-api-python

현재 급식,학교정보만 가져올수있습니다.

Api키는 이곳여기서 받으실수있습니다.

Example

import asyncio
from neispy import lunch, school, sort

key = "Api key paste here"
name="인천기계공업고등학교"

async def main():
    param = await sort.sort_reqarg(key)
    scinfo = await school.schoolinfo(param, name)
    AE, SE = await sort.sort_schoolcode(scinfo)
    lunchinfo = await lunch.lunchinfo(param, AE, SE, 20190102)
    lunchmenu = await sort.sort_lunchmenu(lunchinfo)
    print(lunchmenu)

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

#실행 결과
비빔밥()5.13.
계란북어국()1.5.6.13.
해시브라운/케찹()1.2.12.
배추김치()9.
볶음고추장()5.6.10.13.
삼색과일

인자값

변수명 타입 변수 설명 설명
KEY STRING(필수) 인증키 기본값 : sample key
Type STRING(필수) 호출 문서(xml, json) 기본값 : xml
pIndex INTEGER(필수) 페이지 위치 기본값 : 1(sample key는 1 고정)
pSize INTEGER(필수) 페이지 당 신청 숫자 기본값 : 100(sample key는 5 고정)

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

neispy-0.1.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

neispy-0.1-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

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