Last active
July 12, 2017 18:25
-
-
Save sbiyyala/dd639ce56e5ec5c756cb5775e8caf57c to your computer and use it in GitHub Desktop.
Scrape attendee list
This file contains hidden or 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
$("tbody>tr").filter((a, e) => $(e).has("td>div>span.D_yes").size() > 0) | |
.map((a, e) => { | |
const mn = $(e).find(".D_name") | |
.text() | |
.replace("speaker","") | |
.replace("Organizer","") | |
.trim(); | |
const qn = $(e).find("dd") | |
.contents() | |
.text() | |
.replace("“","") | |
.replace("”", ""); | |
return qn === "" ? mn : qn; | |
}) | |
.get() | |
.sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase())) | |
.join("\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment