Skip to content

Latest commit

 

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

台中教育大學 校務行政系統 NTCU API

NTCU API 提供與學校網站進行互動的接口,用於獲取課程、成績等資料。

forthebadge forthebadge

簡介

此項目是用於與國立臺中教育大學 (NTCU) 的網站進行互動的 Python API,能夠獲取學生的課程和成績等資訊。

安裝

pip install -r requirements.txt

使用方法

  1. 初始化 API:

    from ntcu_api import Ntcu_api
    
    ntcu = Ntcu_api(account='你的帳號', password='你的密碼')
  2. 獲取當前學期的課程:

    courses = ntcu.getThisSemCourses()
    print(courses)
  3. 獲取所有學期的成績:

    grades = ntcu.getAllGrd()
    print(grades)

功能

  • 獲取當前學期的所有課程
  • 獲取指定學年和學期的課程
  • 獲取所有學期的成績資料
  • 獲取每個學期的平均成績資料

注意事項

  • 確保在使用此 API 之前已安裝所有必要的依賴項。
  • 請勿將帳號和密碼公開,以保護個人資訊。

貢獻

如有任何建議或問題,歡迎提出 PR 或開啟 issue。

許可證

本項目使用 MIT 許可證。詳細內容請參閱 LICENSE 檔案。

About

An API developed for NTCU

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages