-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.py
16 lines (13 loc) · 795 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import arguments_parser
import banco_do_brasil_navigator
import minhas_economias_navigator
if __name__ == "__main__":
arguments = arguments_parser.parse_args()
bb_navigator = banco_do_brasil_navigator.Navigator()
bb_navigator.execute_login(arguments.bank_branch, arguments.bank_account, arguments.bank_password)
transactions_file_path = bb_navigator.export_transactions(arguments.download_directory_path, 1 ) # bb_navigator.MONTH_AUG) do it later
bb_navigator.close()
minhas_economias_navigator = minhas_economias_navigator.Navigator()
minhas_economias_navigator.execute_login(arguments.minhas_economias_user, arguments.minhas_economias_password)
minhas_economias_navigator.import_transaction_file(transactions_file_path)
minhas_economias_navigator.close()