Last active
January 11, 2017 14:51
-
-
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 "="
This file contains 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
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