Skip to content

Instantly share code, notes, and snippets.

@ryanburnette ryanburnette/uber.js
Created Jan 16, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.