This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Contribution
Yukai Huang edited this page Sep 21, 2016
·
1 revision
現有的架構支援兩種擴充模式,一種是提供該校的課程資料包,格式如下:
// ntust.json
[
{
"code": "3N1051704", // 課程代碼,唯一值
"name": "生物地理", // 名稱
"lecturer": "許嘉恩", // 老師
"periods": [ // 各節節次時間
{
"day": 2, // 星期二
"time": "09:10-10:00", // 幾點到幾點
"location": "本部 正102" // 教室
},
{
"day": 2,
"time": "10:20-11:10",
"location": "本部 正102"
},
{
"day": 2,
"time": "11:20-12:10",
"location": "本部 正102"
}
]
},
{
"code": "3N1055703",
"name": "光學",
"lecturer": "陸亭樺",
"periods": [
{
"day": 2,
"time": "13:20-14:10",
"location": "公館 E202"
},
{
"day": 4,
"time": "10:20-11:10",
"location": "公館 E102"
},
{
"day": 4,
"time": "11:20-12:10",
"location": "公館 E102"
}
]
},
...
]
第二種是直接提供該校的爬蟲腳本,例如 ntust
,爬完之後寫在該目錄下的 ntust.json 檔裡。
不過三校聯盟應該很簡單就能幹完了不用啥 contribution 哼哼哈