Skip to content

TotalWipeOut/moorepay-dl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moorepay Next Generation Payslip Downloader

This uses Playwright to open Moorepay in a normal browser, wait for you to complete manual login, however you need, including with your hardware key, then iterate the payslip list and download each PDF.

Requirements

  • Node.js 20+
  • npm

Setup

npm install
npx playwright install chromium

Run

npm run download

When the browser opens:

  1. Complete the Moorepay login manually.
  2. Return to the terminal and press Enter.
  3. The script will open the payslip list and download each PDF into downloads/.

Notes

  • Browser session data is stored in .pw-user-data/, which helps on reruns.
  • Downloads are saved as 2026-02-27 payslip.pdf, etc.
  • If a file already exists with the same generated name, it is skipped.

Optional environment variables

MOOREPAY_COMPANY_ID=01
MOOREPAY_LIST_URL=https://app.moorepay.co.uk/me/PaydetailsDocuments/index?companyId=01&tabSelection=5&section=documents#documents
MOOREPAY_LOGIN_URL=...
DOWNLOAD_DIR=downloads
USER_DATA_DIR=.pw-user-data
TIMEOUT_MS=30000

About

This uses Playwright to open Moorepay in a normal browser, wait for you to complete manual login, then iterate the payslip list and download each PDF.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors