Skip to content

Instantly share code, notes, and snippets.

@d3ep4k
Last active March 12, 2020 12:43
Show Gist options
  • Save d3ep4k/4490bebc39e9d0a779d08e62fbe2b158 to your computer and use it in GitHub Desktop.
Save d3ep4k/4490bebc39e9d0a779d08e62fbe2b158 to your computer and use it in GitHub Desktop.
JS code to organise paytm orders to be exported as csv
// records = []
columns = []
document.querySelectorAll("._2PmH5").forEach( record => {
columns=[]
record.childNodes.forEach( column =>
columns.push(column.textContent.trim())
);
str = JSON.stringify(columns);
// debugger;
// console.log(str)
console.log(str.substring(1,str.length-1));
})
// console.log(records)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment