1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { msDay } from "https://esm.town/v/stevekrouse/msDay?v=1";
import { newRSSItems } from "https://esm.town/v/stevekrouse/newRSSItems?v=6";
export async function getMcgillEvents() {
const url =
"https://www.alumni.mcgill.ca/aoc/events-travel/registration/regwizEventsList.php?location=050%3AMA&school=&dateMonth=&title=&doSearch=1";
const items = await newRSSItems({
url: url,
lastRunAt: Date.now() - 60 * msDay,
});
if (items.length) {
console.email(items, "New from Mcgill Alumni Events");
}
}
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
October 23, 2023