1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { getLocationEntities } from "https://esm.town/v/ryanbateman/getLocationEntities";
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 getShorpyRSS() {
let items = await newRSSItems({
url: "https://feeds.feedburner.com/shorpy?q=rss.xml",
lastRunAt: Date.now() - 7 * 2 * msDay,
});
if (items?.length) {
for (let item of items) {
console.log(await getLocationEntities(item.description));
}
}
}