https://github.com/captin411/ofxclient is a good place to start, if your bank supports it. Some banks (like Bank of America) charge you a monthly fee for OFX downloads. In those cases, you can write up a selenium script or something similar to login for you and scrape transactions once a day/week/whatever. That's obviously a fragile solution, however.