Skip to content

Instantly share code, notes, and snippets.

View sunil-sangwan's full-sized avatar
:octocat:

Sunil Sangwan sunil-sangwan

:octocat:
View GitHub Profile
@sunil-sangwan
sunil-sangwan / downloadKekaPayslips.js
Last active June 18, 2021 03:57 — forked from rheaditi/downloadKekaPayslips.js
Download all Payslips from Keka HR Software
/**
* This puppeteer script will automatically download all payslips for you, if your company uses Keka HR Software.
* I downloaded about 4 years of payslips in approximately 2 minutes! :P
*
* - Download this file and save it in some temporary directory.
* - Fill in the params wherever you see the ℹ️ in this file & save.
* - Install the dependency `puppeteer-core` (just run `npm init` and `npm install --save puppeteer-core@2` in your directory).
* - Requires NodeJS >= 12 (tested with v12.13.1), puppeteer-core@2 & Google Chrome browser.
* - Run: `node downloadPayslips.js`
* - The files are all saved to the browser's default download folder.