NTCU API 提供與學校網站進行互動的接口,用於獲取課程、成績等資料。
此項目是用於與國立臺中教育大學 (NTCU) 的網站進行互動的 Python API,能夠獲取學生的課程和成績等資訊。
pip install -r requirements.txt-
初始化 API:
from ntcu_api import Ntcu_api ntcu = Ntcu_api(account='你的帳號', password='你的密碼')
-
獲取當前學期的課程:
courses = ntcu.getThisSemCourses() print(courses)
-
獲取所有學期的成績:
grades = ntcu.getAllGrd() print(grades)
- 獲取當前學期的所有課程
- 獲取指定學年和學期的課程
- 獲取所有學期的成績資料
- 獲取每個學期的平均成績資料
- 確保在使用此 API 之前已安裝所有必要的依賴項。
- 請勿將帳號和密碼公開,以保護個人資訊。
如有任何建議或問題,歡迎提出 PR 或開啟 issue。
本項目使用 MIT 許可證。詳細內容請參閱 LICENSE 檔案。