Created
December 24, 2016 07:29
-
-
Save arcatdmz/e957fee5a840c5617ad95473fd611675 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
// execute this code in the debug console to extract chair names from the CHI 2017 website. | |
// https://chi2017.acm.org/select-subcommittee.html | |
var chairs = []; | |
document.querySelectorAll('span.MyBolding').forEach((e) => { | |
if (e.childNodes[0].data == 'Subcommittee Chairs' || e.childNodes[0].data == 'Associate Chairs') { | |
var p = e.parentElement; | |
while (p.nextSibling) { | |
p = p.nextSibling; | |
if (! p.children || p.children.length <= 0) { | |
if (p.childNodes && p.childNodes[0]) chairs.push(p.childNodes[0].data); | |
continue; | |
} | |
if (p.children[0].className == 'MyBolding') break; | |
} | |
} | |
}); | |
chairs.filter((x, i, self) => self.indexOf(x) === i && x.trim().length > 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment