⚡ mainly mamafoodbistro
All checks were successful
Update menicka / update-rss (push) Successful in 5m17s
All checks were successful
Update menicka / update-rss (push) Successful in 5m17s
This commit is contained in:
7
cli.mjs
7
cli.mjs
@ -88,10 +88,13 @@ async function menickoMamafoodbistro(){
|
||||
const dny= {};
|
||||
for(const den of menicko.getElementsByTagName("h4")){
|
||||
const polevka= den.nextElementSibling;
|
||||
const hlavni= polevka.nextElementSibling;
|
||||
let hi= polevka.nextElementSibling;
|
||||
const hlavni= [ hi ];
|
||||
while(( hi= hi.nextElementSibling ) && hi.tagName !== "H4")
|
||||
hlavni.push(hi);
|
||||
Reflect.set(dny, den.textContent.trim().toLowerCase(), {
|
||||
polevky: [ polevka.textContent ],
|
||||
hlavni: [ hlavni.textContent ],
|
||||
hlavni: hlavni.map(el=> el.textContent),
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user