Runs every 1 hrs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { findTopNews } from "https://esm.town/v/kajgod/findTopNews";
export async function fetchZrs() {
// for testing only
const dryRun = false;
// settings
const email = (title) =>
`Novosti na ZRS stranici: ${title}\r\n https://web.zrs.hr/ \r\n j. \r\n`;
const subject = (title) => `ZRS: ${title}`;
const url = "https://web.zrs.hr/";
const className = "indexnews";
const offset = 65;
// call findTopNews
const r = await findTopNews(
url,
className,
offset,
email,
subject,
dryRun,
);
console.log(r);
}