October 23, 2023
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { fetchText } from "https://esm.town/v/stevekrouse/fetchText?v=5";
export const thedyslexicdeveloperTikTok = (async () => {
const cheerio = await import("npm:cheerio");
const html = await fetchText(
`https://www.tiktok.com/@thedyslexicdeveloper`,
);
const $ = cheerio.load(html);
const data = $("h3").first().prop("innerText").match(/[^\d]+|\d+/g);
return `
${data[0]} - ${data[1]}
${data[2]} - ${data[3]}
${data[4]} - ${data[5]}
`;
})();
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
October 23, 2023