sclass LotteryResult { S date; L numbers; } static LotteryResult scrapeLotteryResults(S html) { LS tok = htmlTok(html); new LotteryResult result; result.date = assertNempty("Date", rtagParam datetime(findTag time(tok))); LS tokResult = first(findContainerTagWithParams(tok, 'td, class := 'result)); result.numbers = map parseInt(joinAll(contentsOfContainerTags(tokResult, 'li))); ret result; }