A unofficially light weight Python Api for the "Military Commercial Joint Stock Bank" account
Because I don't want to lose money on some api services like casso.vn
and python3
pip install mbbank-lib
or Dev Ver
pip install git+https://github.com/thedtvn/MBBank
import datetime
import mbbank
mb = mbbank.MBBank(username="<account number>", password="<account password>" [, tesseract_path="path/to/tesseract"])
daynow = datetime.datetime.now()
lasttime = daynow - datetime.timedelta(weeks=4*3) # maximum time 3 Month
mb.getTransactionAccountHistory(from_date=lasttime, to_date=daynow [, accountNo="<sub account number default is main account number>"])
mb.getBalance()
mb.getBalanceLoyalty()
mb.getInterestRate()
mb.getFavorBeneficiaryList(transactionType= "TRANSFER" or "PAYMENT", searchType="MOST" or "LATEST")
mb.getCardList()
mb.getSavingList()
mb.getLoanList()
mb.userinfo()
import asyncio
import mbbank
import datetime
async def main():
mb = mbbank.MBBankAsync(username="<account number>", password="<account password>" [, tesseract_path="path/to/tesseract"])
daynow = datetime.datetime.now()
lasttime = daynow - datetime.timedelta(weeks=4*3) # maximum time 3 Month
await mb.getTransactionAccountHistory(from_date=lasttime, to_date=daynow [, accountNo="<sub account number default is main account number>"])
await mb.getBalance()
await mb.getBalanceLoyalty()
await mb.getInterestRate()
await mb.getFavorBeneficiaryList(transactionType= "TRANSFER" or "PAYMENT", searchType="MOST" or "LATEST")
await mb.getCardList()
await mb.getSavingList()
await mb.getLoanList()
await mb.userinfo()
asyncio.run(main())
and all this is return json for you have full control your data