Skip to content

Instantly share code, notes, and snippets.

@satour
Created September 6, 2019 08:36
Show Gist options
  • Save satour/b6b276b0b79c4828197387edcdd452c4 to your computer and use it in GitHub Desktop.
Save satour/b6b276b0b79c4828197387edcdd452c4 to your computer and use it in GitHub Desktop.
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