That site was part of a popular request long ago that I made a script for. It works and you can use it as a guideline for coding socket scripts. You can find it
here.
However, since recent, there's been a popular JSON parser made by Froggie, another forum user, which will allow you to very easily pull that info straight from the TwitchAPI. You can use the search function to find more info regarding this. I believe searching for "JSON" or "UPTIME" should work.