Created
August 15, 2018 21:22
-
-
Save ollieglass/d1f5a6766544e9d3f42dc44c8c331aef to your computer and use it in GitHub Desktop.
Sainsbury's Bank Credit Card transaction view to CSV (almost)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('tr.no-transaction-details.card').each(function(i, e) { | |
var $e = $(e); | |
var s = [$e.find("td[data-coltype='date']").text(), | |
$.trim( $e.find("td[data-coltype='description']").text() ), | |
$.trim( $e.find("td[data-coltype='amount']").text() ) | |
]; | |
s = s.join(','); | |
console.log(s); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍