import { fetch } from "https://esm.town/v/std/fetch";
export let getBodyFromURL = async (url) => {
const { DOMParser } = await import(
"https://deno.land/x/deno_dom/deno-dom-wasm.ts"
);
const response = await fetch(url);
const html = await response.text();
const parser = new DOMParser();
const doc = parser.parseFromString(html, "text/html");
const bodyText = doc.body.textContent;
return bodyText;
};