Table of Contents
This is a simple node script for login NCU eeclass. 懶人專用登入程式。
- Auto login to NCU eeclass system.
- Auto Logout and close the window after the "waiting time"
- default: the account will not logout automatically
- You can set your own waiting time in the .env file
note see installation for more details.
- node.js
- npm package
- Windows Enviroment
- Microsoft Edge Driver
- install node.js
- clone the this repo
- install npm package
npm init
npm install
- make your own .env file with the following content
ACCOUNT = "[your NCU student account]"
PASSWORD = "[Your NCU student password]"
WAIT_TIME = "[Time is milliseconds]"
- Example 1 (close after 8 seconds):
ACCOUNT = "account"
PASSWORD = "password"
WAIT_TIME = "8000"
- Example 2 (Don't close automatically):
ACCOUNT = "account"
PASSWORD = "password"
Warning This step could not be skipped !
- Double click on the execute.bat file to execute the script.
- Make a shortcut for execute.bat for where you want to run the script.(Ex: Desktop)
Warning
- The browser driver and index.js should be in the same file.
Note