Auto health-checkin script based on headless chrome using puppeteer/chromedp Just for self-practicing
- Nodejs
- puppeteer
-
install with
yarn/npm install
-
modify
.env
config
your creds for http://rzfw.njupt.edu.cn/cas/login
NJUPT_USERNAME="Q18010123"
NJUPT_PASSWORD="xxxxx"
- run script
node main.js
- Go
- chromedp
go build -o main.exe main.go
for windows or go build -o main main.go
for linux
go run main.go -u "YOUR_NJUPT_USERNAME" -p "YOUR_NJUPT_USERNAME$"
//main.exe -u YOUR_NJUPT_USERNAME -p YOUR_NJUPT_PASSWORD
//main xxx
puppeteer is ez and fun :) chromedp is piece of shit XD