Skip to content

Instantly share code, notes, and snippets.

Avatar

Lisi Linhart lisilinhart

View GitHub Profile
@tomhodgins
tomhodgins / cibc2csv.js
Last active Dec 4, 2021
Paste this function into your JS console on CIBC's online banking website to scrape your account ledger into a CSV formatted file the browser can save that can be imported into Excel
View cibc2csv.js
function cibc2csv() {
var table = document.querySelector('table.smart-account')
var csv = ''
var head = []
var row = []
// read header cells
table.querySelectorAll('thead th').forEach(th => {
head.push(`${trim(th.textContent)}`)
})