Warning: session_start(): open(/var/lib/php/sessions/sess_vtvev975dm5g1apnr1q75okmr4, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
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;
}