Skip to content

Instantly share code, notes, and snippets.

@sbiyyala
Last active July 12, 2017 18:25
Show Gist options
  • Save sbiyyala/dd639ce56e5ec5c756cb5775e8caf57c to your computer and use it in GitHub Desktop.
Save sbiyyala/dd639ce56e5ec5c756cb5775e8caf57c to your computer and use it in GitHub Desktop.
Scrape attendee list
$("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