import fs from 'fs'; const url = 'https://mastodon.social/'; const html = await fetch(url).then((res) => res.text()); // Extract the JSON between const json = html.match( /