So basically I'm trying to make a discord bot to fetch the player data within a game called Venge.io. Their api is private and requires a token to access.
I tried using the code below to fetch the overall page of my specific stats:
if(message.content.startsWith(`${prefix}test`)){
JSDOM.fromURL("https://social.venge.io/#Izzi").then(dom => {
console.log(dom.serialize());
});
}
The outcome resulting in things such as this:
<li>
<span class="label">KILLS</span>
<span class="value">{{details.kills}}</span>
</li>
(Snippet of the long amount of html)
When inspecting it loaded manually, it gives a result such as this:
<li>
<span class="label">KILLS</span>
<span class="value">11748</span>
</li>
I'm looking to figure out how I can fetch the loaded html instead of the raw html so I can then use this for multiple users and more things available.