Downloads Payslips from Paybooks.
This script opens a Chromium browser and automates user actions to download and save the payslips.
60% of the time, it works every time.
- Clone this repo
- Export below env variables
export PAYBOOKS_USERNAME=<email>
export PAYBOOKS_PASSWORD=<password> # use single quotes if your password has exclaimation mark
export PAYBOOKS_DOMAIN=<domain for your org>
- Install dependencies & run the script
npm i
node index.js