Skip to content

kelvinleong/hsbc_estatments_download

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

This script is a bot to auto login your HSBC account which free you from the tedious two way authentication!

New Feature

  • Support to auto login and download eStatement from HSBC credit card account
  • Support Saving account and Credit card account statements download
  • Support statement type (credit and/or debit card) download configuration

Prerequisite

Setup

create a config file as per Src/sample_config.ini

Using base64 encoded secrets to configure account info

[Account]
# Bank login info (more secured way to be implemented)

username = <base64encrypted(username)>
memorable = <base64encrypted(memorable sentence)>
secret2 = <base64encrypted(second password)>
accounts = <account_number1>,<account_number2>,...

Specify the location of your chromedriver in the config file

[Paths.os]
# paths config for linux

# Driver path
   driver_path = <path_to>/chromedriver
   # chrome path can be empty if bin in $PATH
   chrome_path = <path_to>/chrome

Change the location where you want to save statements still in the config file

[Paths.Linux]
# paths config for linux
# File download location
   FILE_DIR = <path_to>/files

Set issue dates for credit card and statement

[IssueDate]
credit_card = 12
statement = 26

Usage

To download all statements (both credit and debit card) from your account:

  Python AutoDownload.py -c <config_file> -a -t cd

If you just want to download current monthly credit card statement,

  Python AutoDownload.py -c <config_file> -d -t c

To retrieve a specific monthly debit card statement, you can type (currently, HSBC only stores the latest 24 months' statements for their client):

Python AutoDownload.py -c <config_file> -m Mon-YYYY -t d(e.g., Python AutoDownload.py -m Jun-2016)

New:

-Download type setting

 Syntax
    [-t type]

 Flags
    Item
          Description
    -t    type
          specify download type for credit and/or debit card statement. ("c" for credit card, "d" for debit card)
          for example,
          -t cd (download both credit and debit card statement)
          -t c (only download credit card statement)

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages