To add some excitement to my Python learning journey, I wanted to use Python for a small automation project. Once a month I log into all my financial accounts and record balances and spending for bookkeeping purposes. The act of logging into all my accounts is pretty tedious since I always forget the password to each bank. I wrote a Python program that asks for my pin number, if the pin entered is correct the program will then open up Chrome and load up each bank website, log in, and go to the balances page.
It doesn't seem like much, but it was pretty complicated. The code uses a package called Selenium which is used for controlling web browsers. To pinpoint where the program needs to enter the username/password and to 'click' I had to look at the underlying HTML code for each website, this was the most tedious as each website's HTML code looked different. What's interesting is Citi wouldn't let me log in with my code. The website knew I was using a browser program and suspected it was a fraudulent attempt at logging in.
This was a small project but was a major hurdle into the automation world and I'm already seeing ways I can apply a more automated streamlined process at work. I also want to automate things like buying stocks where I just input the stock symbol and the script logs me in and places the market order for me. I'll upload the code I have on my GitHub.
Comentarios