Giter VIP home page Giter VIP logo

natwest.js's Introduction

NatWest.js

Overview

This is a rudimentary API for NatWest Online banking, based loosely on the Ruby script by @runpaint.

At the moment it consists of a command-line application that simply dumps out your last year of account transactions.

Usage

  • Install dependencies via NPM
  • Create an account.json based on the example provided. Warning: should be chmod 600.
  • Run natwest.js

Purpose

The login procedure for nwolb is pure security theatre. It requires:

  • Spoofing your user agent, using Chrome in this case.
  • Entering your customer number, then clicking "Log in".
  • Determining three specific digits of your PIN, then entering them in individual form fields.
  • Determining three specific characters of your password, then entering them in individual form fields.
  • Hitting "Next".

(For extra difficulty, the last "Next" button is positioned under a series of three images: if you click on it before the images have loaded, you're likely to click one of those instead, which loads an unrelated page).

Retrieving statements requires the following:

  • Traversing to the statements search.
  • Adjusting the date fields (to no more than a 365 day range).
  • Punching it.
  • Clicking the "All" link in the pagination to retrieve all results.
  • Parsing the table output.

Bugs

This utility relies on screen-scraping multiple pages of horrendous HTML. Further, it has only been tested with one account. Feel free to report errors, preferably with the HTML, appropriately sanitised, on which it fails.

natwest.js's People

Contributors

stevelacey avatar

Watchers

Donal Farrell avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.