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