Skip to content

Instantly share code, notes, and snippets.

@ryanburnette
Created January 16, 2019 21:15
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 ryanburnette/cf870e368965115312b90461b968a3bc to your computer and use it in GitHub Desktop.
Save ryanburnette/cf870e368965115312b90461b968a3bc to your computer and use it in GitHub Desktop.
Moving Uber transactions from the site to console.log then to spreadsheet
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