Skip to content

Instantly share code, notes, and snippets.

@emceeaich
Created September 20, 2016 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emceeaich/ee84fd979f9e3ed13848acf8c232b6d0 to your computer and use it in GitHub Desktop.
Save emceeaich/ee84fd979f9e3ed13848acf8c232b6d0 to your computer and use it in GitHub Desktop.
Parse out the triage leads from the wiki. Cut and paste into the javascript console.
var report = [];
document.querySelectorAll('table.wikitable').forEach(table => {
report.push({
product: table.querySelector('tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2)').textContent.trim(),
component: table.querySelector('tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(4)').textContent.trim(),
lead: table.querySelector('tbody:nth-child(1) > tr:nth-child(2) > td:nth-child(2)').textContent.trim()
});
});
report.forEach(item => {console.log(item.product + ', "' + item.component + '", ' + item.lead) });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment