Back

Version 4

10/23/2023
import { getLocationEntities } from "https://esm.town/v/ryanbateman/getLocationEntities";
import { getShorpyRSS } from "https://esm.town/v/ryanbateman/getShorpyRSS";

export let getLocationsForRSSItems = async() {
let rssItems = await getShorpyRSS()
if (rssItems?.length) {
for (let item of rssItems) {
let description = await getLocationEntities(item.description);
console.log(JSON.parse(description).entities[1]);
}
}
}
Updated: October 23, 2023