If you're lazy about stuff you can use the search function here and find a couple of scripts for this same purpose.
Using a 3rd party to pull information isn't optimal when Twitch has an API on their own, but if you choose to do that then that's up to you. Something you need to use for this is Sockets.
I recommend reading here to learn about sockets. http://en.wikichip.org/wiki/mirc/sockets/tcp