Skip to main content

컴시간알리미 시간표 파싱 라이브러리입니다.

Project description

pycomcigan

GitHub Workflow Status PyPI - Python Version PyPI PyPI - Downloads GitHub

컴시간알리미 에서 시간표 정보를 가져오는 Python 라이브러리입니다.

컴시간알리미 구조에 대한 설명은 comcigan.md를 참고하세요.

설치

$ pip install pycomcigan

기능

  • 시간표 가져오기
  • 학교 검색
  • 담임 정보

사용법

from pycomcigan import TimeTable, get_school_code

# 학교 검색
# [학교명, 지역명, 학교 코드, 지역 코드] 리스트로 응답
get_school_code("경기")

# 시간표 가져오기
# week_num: 0이면 이번주, 1이면 다음주
timetable = TimeTable("경기북과학고", week_num=1)

# 3학년 1반 화요일 시간표
print(timetable.timetable[3][1][timetable.THURSDAY])

라이센스

MIT License

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

pycomcigan-1.2.0.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

pycomcigan-1.2.0-py3-none-any.whl (6.1 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