Skip to content

Instantly share code, notes, and snippets.

@ollieglass
Created August 15, 2018 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ollieglass/d1f5a6766544e9d3f42dc44c8c331aef to your computer and use it in GitHub Desktop.
Save ollieglass/d1f5a6766544e9d3f42dc44c8c331aef to your computer and use it in GitHub Desktop.
Sainsbury's Bank Credit Card transaction view to CSV (almost)
$('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);
})
@jonathh21
Copy link

And again...

@Gergling
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment