Skip to content

Stufinite/calApi

Repository files navigation

calApi 選課小幫手所有的apiBuild Status

本專案分成三種類型的api
請去察看各自api的readme

  1. curso
  2. cphelper
  3. timetable

Prerequisities

  1. OS:Ubuntu / OSX would be nice
  2. environment:need python3
  • Linux:sudo apt-get update; sudo apt-get install; python3 python3-dev
  • OSX:brew install python3
  1. service:need mongodb
  • Linux:sudo apt-get install mongodb

Installing

  1. pip install -r requirements.txt
  2. ./run.sh 他會把api所需的爬蟲專案載下來在目錄底下,並且執行匯入,預設是載入中山大學;如果要測其他學校需要人工執行指令 爬蟲指令 匯入資料指令
  3. 完成爬蟲後,用該指令將課程資 料插入DB:python manage.py buildCourse 檔名.json 學校 學期 e.q. python manage.py buildCourse NSYSU.json NSYSU 1061

Testing

Break down into end to end tests

python manage.py test

And coding style tests

目前沒有coding style tests...

Built With

  • Django==1.11.4
  • djangoApiDec==1.2,
  • jieba==0.38,
  • pymongo==3.4.0,
  • PyPrind==2.9.9,
  • requests==2.12.3,
  • simplejson==3.10.0,
  • mongodb==3.2.11

Contributors

  • 張泰瑋 david
  • 黃川哲

License

This package use MIT License.