Skip to main content

Daejeon university intranet API

Project description

This project gives you Api for Daejeon university intranet. Daejeon university’s web sites are sucks. So I made it.

Examples

Login

>>> import djuintra
>>> da = djuintra.DjuAgent()
>>> da.login('<User ID>', '<User PW>')
>>> # Nothing happen if logged in successfully, else raise an exception.

Get Time tables

>>> for timetable in da.get_timetables(2014, 2, 0, '00000', 0):
...     print(u'{0.classname} by {0.profname} {0.score}/{0.time}'.format(timetable))
대학영어(1) by 제임스썸머필드 2/2
대학영어(1) by 페리 2/2
대학영어(1) by 네드콕스 2/2
대학영어(1) by 티머시롤랜드 2/2
대학영어(1) by 브라이언맥컬리 2/2
대학영어(1) by 제임스썸머필드 2/2
대학영어(1) by 페리 2/2
대학영어(1) by 네드콕스 2/2
대학영어(1) by 티머시롤랜드 2/2
대학영어(1) by 브라이언맥컬리 2/2
대학영어(1) by 아담드레슬러 2/2
대학영어(1) by 마이너 2/2
대학영어(1) by 로드리고버뮤즈 2/2

Get Schedules

>>> for schedule in da.get_schedules():
...     print(u'{0.title}({0.depart}): {0.start}~{0.end}'.format(schedule))
...
수업일수1/3(학사서비스팀): 2014-10-05 09:00:00~2014-10-05 23:59:59
전역복학마감일자(개강후3주내)(학사서비스팀): 2014-09-19 17:30:00~None
휴학신청기간(학사서비스팀): 2014-08-04 09:00:00~2014-08-14 17:30:00
복학신청기간(학사서비스팀): 2014-07-14 09:00:00~2014-07-25 17:30:00
/복수전공신청기간(학사서비스팀): 2014-07-07 09:00:00~2014-07-11 17:30:00
모의토익원서접수신청기간(외국어교육센터): 2014-09-15 12:00:00~2014-09-19 17:00:00

Get personal scores

personal_scores = da.get_personal_scores()
for semester in personal_scores.semesters:
    print(semester.title)
    for score in semester.scores:
        print(u'{0.title}: {0.score}'.format(score))
print(u'Average score: {0}'.format(personal_scores.averagescore))

Course registration

courses = [
    ('000000', '01'),
    ('000001', '02'),
    ('010101', '30'),
]

da.register_course(courses)

Documentation

http://dju-intranet.readthedocs.org/en/latest/

https://readthedocs.org/projects/dju-intranet/badge/

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

dju-intranet-0.1.4.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file dju-intranet-0.1.4.tar.gz.

File metadata

File hashes

Hashes for dju-intranet-0.1.4.tar.gz
Algorithm Hash digest
SHA256 8ab60b9a10ebc3e7e805096e01ab91bac6968809a30ec1bd2d7928ef225d3168
MD5 4b0aab880438c5b91d8e6564ba230964
BLAKE2b-256 22cea976875ab8b19f093aca797ed76c8f0e0f50cea1ed2ebf271e025c101ce3

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