Skip to content

Instantly share code, notes, and snippets.

@edgriebel
Last active January 11, 2017 14:51
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 edgriebel/a691e267bd645a68c47d585920ca8ef6 to your computer and use it in GitHub Desktop.
Save edgriebel/a691e267bd645a68c47d585920ca8ef6 to your computer and use it in GitHub Desktop.
Extract account names and nicknames from Mint into a form to import into Excel or Google Docs. When importing, split on "="
accts=jQuery('.accounts-data-li');
acctlist = accts.map(function(x) {
var a=jQuery(accts[x]);
var n=a.find('.accountName');
var nn=a.find('.nickname');
var b=a.find('.balance');
var v=n.text()+":"+nn.text()+"="+b.text();
console.log("account: " + v);
return v;
});
acctCSV = JSON.stringify(acctlist.toArray())
.replace(/","/g, '\n')
.replace(/"/g, '');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment