Skip to content

sloev/nemid_bank_transcripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scrape your bank transactions to stdout jsonlines (with NemId)

Buy Me A Coffee

⚠️ always read the code before running, this is afterall given your nemid!

How it works

diagram

scrape.js logs into your netbank using NemId credentials, it will click "send auth request" which will prompt your NemId app to let you authenticate.

It will then go to your transactions and scroll down while intercepting all HTTP requests made to a certain path containing your transaction history. After scrolling for a bit it will go back to the top and start from scratch scrolling again.

It will continue to do so until it gets logged out where it again will prompt the users Nemid app to authorize that it logs in again and starts polling transaction records.

⚠️ In theory it should work with most danish banks using "Bankernes EDB Central" according to this issue

Usage

install nodejs>=15.3 get nodejs

$ npm install .

Example based on using Fælleskassen

$ NETBANK_URL=https://netbank.faelleskassen.dk \
  NEM_USERNAME=something \
  NEM_PASSWORD=darkly \
  node scrape.js >> stream.jsonl

and stream.jsonl will contain something like:

...
{"amount":-23,"balance":3413.27,"description":"Kontaktløs something","timestamp":"2016-10-02T04:43:26.348622+01:00","id":"BR-adsfsdafdfdasdfas"}
{"amount":543,"balance":23.27,"description":"gamle varer something","timestamp":"2017-10-02T04:43:26.348622+01:00","id":"BR-asdfasfvasghsghsd"}
...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published