!7
p {
S html = loadPage("https://en.wikipedia.org/wiki/Most_common_words_in_English");
L tok = htmlTok(html);
for (L toktable : /*dropFirst*/(findContainerTagDeep(tok, "table"))) {
LL tokTH = map(fg(f dropTags, f join, f contentsOfContainerTag), html_findTHs(toktable));
printStruct("TH: ", tokTH);
if (eq(tokTH, ll("Rank", "Word"))) {
print("Yay!");
for (L tr : html_findTRs(toktable)) {
printStruct("TDs: ", map(f contentsOfContainerTag, html_findTDs(tr)));
}
}
}
}