1
2
3
4
5
6
7
8
9
10
11
12
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]);
}
}
}