Created
January 16, 2019 21:15
-
-
Save ryanburnette/cf870e368965115312b90461b968a3bc to your computer and use it in GitHub Desktop.
Moving Uber transactions from the site to console.log then to spreadsheet
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
document.querySelectorAll('.b1').forEach(function (el) { | |
if (!el.querySelectorAll('.an > div:nth-child(1)').length) { | |
return false | |
} | |
var date = el.querySelectorAll('.an > div:nth-child(1)')[0].innerText | |
date = date.split(',')[0] | |
date = date.replace(/ /g,'-') | |
var amnt = el.querySelectorAll('.bb.cb')[0].innerText | |
amnt = amnt.replace('$','') | |
amnt = amnt.replace('Cancelled','') | |
console.log(`${date}\tUber\tTransportation\t${amnt}`) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment