Git Product home page Git Product logo

pyneis's Introduction

pyneis

python http client for Neis service(http://neis.go.kr/)

Build Status

Installation

$ pip install pyneis

Example

>>> import neis
>>> client = neis.NeisClient('서울')
>>> schools = client.search_school('휘문')
>>> print(schools)
[<School: 휘문중학교>, <School: 휘문고등학교>]

>>> meals = schools[1].get_weekly_meals(2015, 10, 10, 2)
>>> print(meals)
[<Meal: Empty>, <Meal: 6 Menus>, <Meal: 6 Menus>,
 <Meal: 6 Menus>, <Meal: 6 Menus>, <Meal: Empty>, <Meal: Empty>]

>>> print(meals[1].menus)
[<Menu: 혼합잡곡밥>, <Menu: 돈육김치찌개>, <Menu: 안동찜닭>,
 <Menu: 콩나물무침>, <Menu: 삼치살양념구이>, <Menu: 석박지>]

School.get_weekly_meals() takes year, month, day and type for parameters. type can be 1(breakfast), 2(lunch), 3(dinner).

Note

pyneis is developed in Python 2.7.13

pyneis's People

Contributors

hallazzang avatar dependabot[bot] avatar

Stargazers

JY Park avatar Hyun Yi avatar Kim Dohyeon avatar Mu hun avatar Wonjae Kim avatar Taehoon Kim avatar

Watchers

 avatar

pyneis's Issues

setup.py raises ImportError: No module named bs4

virtualenv 환경에서

pip install pyneis

로 설치하면

Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "<string>", line 20, in <module>
  File "pyneis/setup.py", line 5, in <module>
    from neis import __version__, __author__, __author_email__
  File "neis/__init__.py", line 9, in <module>
    from .client import Client
  File "neis/client.py", line 5, in <module>
    from .school import School
  File "neis/school.py", line 7, in <module>
    from bs4 import BeautifulSoup
ImportError: No module named bs4

라며 실패합니다.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.