I also wrote a script to pull information directly from my Roku TV a long time ago.
EDIT: Here is a URL you can use if you have a Roku TV. It should work with any brand. Just figure out the Roku IP adress and put it in the spot “RokuIPaddress”. You must be connected to the same network to use it.