Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/adamyordan/id-bank-scraper

Scraper for some Indonesian banks and e-payments written in Node / Javascript
https://github.com/adamyordan/id-bank-scraper

Last synced: 6 days ago
JSON representation

Scraper for some Indonesian banks and e-payments written in Node / Javascript

Awesome Lists containing this project

README

        

Indonesia Bank Scrapers
===
This node module contains the scraper for some Indonesian banks and e-payments. That's the plan at least. Currently only the following is supported:
- BPTN Jenius

Getting Started
===
Install package from npm:
```
npm install id-bank-scraper
```

Then you can simply import and use it in your node module:
```
const JeniusScraper = require('id-bank-scraper/jenius')

const credential = {
email: [email protected],
password: your_jenius_password
}

JeniusScraper.getHistory(credential).then(data => {
console.log(data)
})
```

Command Line Interface
===
You can also use this module independently
```
git clone https://github.com/adamyordan/id-bank-scraper.git
cd id-bank-scraper
npm i
node index.js -b jenius -e -p
```
The output will be writtent o `output` directory.

Data Structure
===
The structure of resulting history data is as follows:
```
{
id: string, // transaction id
amount: int, // transaction amount
note: string, // transcaction note
debitCredit: string, // 'DEBIT' or 'CREDIT'
createdAt: string, // 'ISO date string'
partnerName: string, // recipient or sender name
partnerAccount: string, // recipient or sender account
partnerOrg: raw.partner.org, // recipient or sender organization
}
```

License
===
The MIT license