ScrapBRI

ScrapBRI

new ScrapBRI()

Description:
  • ScrapBRI class for scraping BRI (Bank Rakyat Indonesia) data.

Source:

Extends

  • ScraperBank

Methods

(async) fetchAccountDetails(accountValue, formattedDate, token) → {Object}

Description:
  • Fetches account details from the BRI website.

Source:
Parameters:
Name Type Description
accountValue string

Account value.

formattedDate string

Formatted date.

token string

Security token.

Returns:
  • Account details data.
Type
Object

formatCurrentDate() → {string}

Description:
  • Formats the current date.

Source:
Returns:
  • Formatted date string.
Type
string

(async) getStatement() → {Object}

Description:
  • Gets the account statement from the BRI website.

Source:
Returns:
  • Account statement data.
Type
Object

(async) loginToBRI() → {Object}

Description:
  • Logs in to the BRI website.

Source:
Returns:
  • Page object.
Type
Object

parseAccountData(data) → {Array}

Description:
  • Parses account data received from the BRI website.

Source:
Parameters:
Name Type Description
data Object

Raw account data.

Returns:
  • Parsed account data.
Type
Array

ScrapBRI

new ScrapBRI(corpID, user, pass, norek, apiKey, useFingerprintInjector)

Description:
  • Constructor for ScrapBRI class.

Source:
Parameters:
Name Type Description
corpID string

BRI corporate ID.

user string

BRI username.

pass string

BRI password.

norek string

BRI account number.

apiKey string

API key for RecaptchaSolver.

useFingerprintInjector boolean

Flag to use fingerprint injector.

Methods

(async) fetchAccountDetails(accountValue, formattedDate, token) → {Object}

Description:
  • Fetches account details from the BRI website.

Source:
Parameters:
Name Type Description
accountValue string

Account value.

formattedDate string

Formatted date.

token string

Security token.

Returns:
  • Account details data.
Type
Object

formatCurrentDate() → {string}

Description:
  • Formats the current date.

Source:
Returns:
  • Formatted date string.
Type
string

(async) getStatement() → {Object}

Description:
  • Gets the account statement from the BRI website.

Source:
Returns:
  • Account statement data.
Type
Object

(async) loginToBRI() → {Object}

Description:
  • Logs in to the BRI website.

Source:
Returns:
  • Page object.
Type
Object

parseAccountData(data) → {Array}

Description:
  • Parses account data received from the BRI website.

Source:
Parameters:
Name Type Description
data Object

Raw account data.

Returns:
  • Parsed account data.
Type
Array