Answer the question
In order to leave comments, you need to log in
What you need to learn to automate the receipt of a bank statement?
Well, I'm certainly not going to click the site to death, I don't need to. And there is a boring thing that I would like to automate a little bit. Namely, the process of obtaining a bank statement. How it looks like for us:
1) I go to the site page for corporate clients
2) I enter the login password, click "ok"
3) the main page appears where I select the "Bank statements" tab on the left
4) fillable fields appear with the choice of account and period for receipt of the statement, I put down the required values
5) I click to order the statement, the bank thinks a little and gives out a page with the movements of funds
6) there are three icons on top - download in the format 1s 01 02 03, I press the format 1.03 and the text file is downloaded
If I understand correctly, my task consists of several parts -
- first you need to learn how to connect via https to the bank's website
- understand how the authorization on the site occurs, enter the password login and send to the site, receive a response
- the page for ordering statements has its own address, you need to download it to the clipboard (probably)
- you need to understand how to programmatically set the values in the list for selecting an account and period for a statement
- and of course, you need to understand how the process of pressing the "get statement" button for the selected account and period
occurs - when I click the get button, a waiting bar appears and the site gives the answer. We need to somehow deal with this, what kind of process is going on and load the response into the buffer
- you need to click the icon to download the statement in the selected format
In general, everything is complicated. Probably, I will be glad if I manage to go through at least the authorization process on the bank page and get some kind of response in the buffer. And is it really possible to do this in c++, or is it better to use python right away? In the latter, I am a complete teapot.
Answer the question
In order to leave comments, you need to log in
If the bank does not have its own API, then the actions described above are reminiscent of Selenium, where the browser itself will click everything itself, but it still takes time.
Well, if through requests. Then from login we usually get some important token, which is generated for a certain time. And after is used to send the following post requests for information. And having received the necessary information, we take the generated link, which contains the file for download
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question