My inability to debug JavaScript is boundless.
When my script accesses
https://museum.loathers.net/player/2115655?_data=routes/player.$id._index
(or similar) it no longer returns any data. I don't know of anything that has changed on my end.
I will accept the possibility that this feature is Beta, unsupported or unmaintained but I much prefer using it to the previous alternative which was to pull a DCDB page for each item and then scrap each page for the characters I was interested in. Add in a whole lot of caching and time stamping since 10,000 items should not be queried in a session if I want a script that won't be banned at ColdFront.
In the spirt of self help I caught an exception that might have told me why there was no data, but
tells me it doesn't know about console. I could not relate the suggested fixes for operating in a browser environment to running JavaScript from KoLMafia. I also could not figure out an equivalent of a print command which I hoped would just display a string where all my other output is being sent. I am probably missing something obvious or overthinking something but that could be the story of my life.
Thank you.
When my script accesses
https://museum.loathers.net/player/2115655?_data=routes/player.$id._index
(or similar) it no longer returns any data. I don't know of anything that has changed on my end.
I will accept the possibility that this feature is Beta, unsupported or unmaintained but I much prefer using it to the previous alternative which was to pull a DCDB page for each item and then scrap each page for the characters I was interested in. Add in a whole lot of caching and time stamping since 10,000 items should not be queried in a session if I want a script that won't be banned at ColdFront.
In the spirt of self help I caught an exception that might have told me why there was no data, but
Code:
catch (e) {
console.error(e);
}
tells me it doesn't know about console. I could not relate the suggested fixes for operating in a browser environment to running JavaScript from KoLMafia. I also could not figure out an equivalent of a print command which I hoped would just display a string where all my other output is being sent. I am probably missing something obvious or overthinking something but that could be the story of my life.
Thank you.