import { untitled_blackCrayfish } from "https://esm.town/v/stevekrouse/untitled_blackCrayfish?v=1";
async function processFeed() {
let rssData = await untitled_blackCrayfish;
console.log("Keys of rssData.rss:", Object.keys(rssData.rss));
for (let item of rssData.rss.channel.item) {
console.log("link:", item.link);
}
let links = [];
for (let i = 0; i < rssData.length; i++) {
console.log(rssData[i]);
if (rssData[i].link) {
console.log(rssData[i]);
links.push(rssData[i].link);
}
}
return links;
}
processFeed().then(output => console.log(output));