Created
September 20, 2016 22:06
-
-
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.
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 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