I have been wanting something like this, though the issues with a scraping approach seem very annoying.
You're probably aware, but others may not be, GNU Cash uses OFX to download transactions from banks.
https://wiki.gnucash.org/wiki/OFX_Direct_Connect_Bank_Settin...
Something to consider.