Last active
March 12, 2020 12:43
-
-
Save d3ep4k/4490bebc39e9d0a779d08e62fbe2b158 to your computer and use it in GitHub Desktop.
JS code to organise paytm orders to be exported as csv
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
// 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