sexta-feira, 20 de agosto de 2010

Using CURL to automate game-monitor searches

I wanted to automate the search for my friends using game-monitor. With that in mind , i knew i only had to grab the page of the search ( www.game-monitor.com uses GET method's to make the searches ) , see the results and output the result.

The only problem i had was grabing the page ; the website doesn't allow without a valid user-agent. So i just copied myne , using tamper data in firefox and the switch -A in Curl.

I then wrote a simply C program that levarages this feature.

Bear in mind that this is more like a POC; if you really want to track your mates / games they are playing, there are dedicated sites that can do that (e.g gametracker, and so on).

The program is here.