Back

Version 40

5/25/2023
const Test = (async () => {
const { cheerioJsonMapper: cjm } = await import("npm:cheerio-json-mapper");
const res = await fetch("https://github.com/trending?since=daily");
const html = await res.text();
const template = [
{
$: "article",
full_name: "$",
},
];
return await cjm(html, template);
// const $ = cheerio.load(
// "<main>" + html.split("<main>")[1].split("</main>")[0] + "</main>",
// );
// return $.extract({
// rows: [".Box-row"],
// });
})();
Updated: October 23, 2023