We have been reliant on the html content of the game's stats page to find the number of runs, which is not great because any site update has a decent chance of breaking that piece of code.
Now I am using the pagination part of the API response and checking if there is a "next" section, if not then it means we have reached the end of results and hence can break the loop.
We have been reliant on the html content of the game's stats page to find the number of runs, which is not great because any site update has a decent chance of breaking that piece of code.
Now I am using the pagination part of the API response and checking if there is a "next" section, if not then it means we have reached the end of results and hence can break the loop.