Created
September 6, 2019 08:36
-
-
Save satour/b6b276b0b79c4828197387edcdd452c4 to your computer and use it in GitHub Desktop.
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
var csv = '\"Name\",\"URL\",\"Owner\",\"Database\",\"Destination\",\"Schedule\",\"Updated\",\"Last Run\"\n'; | |
document.querySelectorAll('.ReactVirtualized__Table__row').forEach(function(element) { | |
let name = element.firstChild.firstChild.firstChild.title; | |
let url = element.firstChild.firstChild.firstChild.href; | |
let owner = element.firstChild.firstChild.childNodes[1].firstElementChild.innerText; | |
let db = element.firstChild.firstChild.childNodes[1].childNodes[1].innerText; | |
let dest = element.childNodes[1].innerText; | |
let sched = element.childNodes[2].innerText; | |
let upd = element.childNodes[3].innerText; | |
let lr = element.childNodes[4].innerText; | |
csv = csv + '\"' + name + '\",\"' + url + '\",\"' + owner + '\",\"' + db + '\",\"' + dest + '\",\"' + sched + '\",\"' + upd + '\",\"' + lr + '\"\n' | |
}); | |
console.log(csv); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment