Back
Version 22
5/25/2023
const Test = (async () => {
const cheerio = await import("npm:cheerio");
const res = await fetch("https://github.com/trending?since=daily");
const html = await res.text();
// const html = '<div class="test">Foo</div>';
const $ = cheerio.load(html.split("<main>")[1].split("</main>")[0]);
return $.extract({
rows: [".Box-row"],
});
})();
Updated: October 23, 2023