- Fill out your account and password in
.env
- Run
npm install
- Go to your 104 website(https://pro.104.com.tw/) use
document.cookie
to find out your cookie through dev tool and copy it. (This is because we at least need one cookie to refresh to avoid 2FA authentication, even it's a expired cookie.) npm run generate-cookie '{the-cookie-you-just-copied-from-website}'
(remember to use single quotes as cookies including spaces)npm run set-cron
to set a default cron every morning at 9, and feel free to adjust your cron. (or can use{node-path} {path-to-this-repo}/clock.js
)
- optimize command for better ux
- randomrize running time for HR routine inspection
- finding out GPS clock api