Giter Site home page Giter Site logo

mmm25002500 / nutc-class-timetable Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 1.71 MB

一個改善並重視UI/UX的臺中科技大學課表

Home Page: https://nutc.tershi.com/

Python 22.15% CSS 0.51% HTML 9.61% TypeScript 64.58% JavaScript 3.14%
flask-api react timetable tailwindcss typescript

nutc-class-timetable's Introduction

國立臺中科技大學 課表
NUTC Class TimeTable

介紹 Introduction

因為中科大的課表很難用,也很難看,因此透過爬蟲的方式,將中科大課表擷取下來,並使用 python flask 製作成 api,用前端去呼叫。

這個專案可以在網頁上選擇您的班級,就會顯示出課表。

執行 Run

您必須要擁有的環境:

  • Python 3.9
  • Python flask(pip)

後端

Step 1. 執行以下的 Bash 命令:

git clone https://github.com/mmm25002500/Nutc-class-timetable
cd Nutc-class-timetable
python3.9 -m pip install -r requirement.txt
python3.9 api.py

STEP2. 更改IP/Port:
更改: run.py,將app.run()的IP/port更改至您的IP/Port,除非您想使用 Proxy,那麼即是 "0.0.0.0"。

STEP3. 更改檔案SSL:
更改: run.py,將ssl_contex=('certificate.pem', 'private.pem')更改為您的SSL憑證位置,除非使用 Proxy 內建SSL,否則請使用SSL。

前端

檔案在 www/index.html,使用 vue.js 製作,預設呼叫 https://api.tershi.com

貢獻 Contribute

如果您想貢獻本專案,可以將本專案 fork 至本地增加/刪除/修改 程式碼,並提交 Pull Requests,我會用心查看您的程式碼,如果對專案有幫助,我將會Merge,或是提供更多建議或詢問。

開發 Developer

資工一1 夏特稀開發。

nutc-class-timetable's People

Contributors

kageryo avatar mmm25002500 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

cutespirit-team

nutc-class-timetable's Issues

生涯**換行問題

在顯示生涯**課程時會導致其中一個 <br> 被切割而使換行無法正常運作。
image

<td class="text-xs sm:text-sm md:text-md px-0 sm:px-4 md:px-6 py-1 text-center">生涯**體育老師&lt;<br>br&gt;0000生涯**</td>

正常應該如下:

<td class="text-xs sm:text-sm md:text-md px-0 sm:px-4 md:px-6 py-1 text-center">課程名稱<br>教授名稱<br>教室編號</td>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.