1
2
3
4
5
6
7
8
import { newRssItems } from "https://esm.town/v/stevekrouse/newRssItems";
export async function pollRssFeed2({ lastRunAt }) {
return ["https://inkandswitch.com/index.xml”].map(async (url) => {
let items = await newRssItems({ url, lastRunAt });
if (items.length) console.email(items, `New Rss Item`));
});
}
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