sclass LotteryResult { S date; L numbers; S jackpot; [stdToString] } 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))); LS tokJackpot = first(findContainerTagWithParams(tok, 'span, class := "jackpot-amount")); result.jackpot = dropAllTags_trimJoin(tokJackpot); ret result; }