For Stepmania Online, you can just use the cURL library for PHP. And then do like this:
code:
<?
function getHTML($url) {
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_TIMEOUT,120);
$HTML = curl_exec($curl);
curl_close($curlHandle);
return $HTML;
}
$HTML = getHTML(”http://stepmaniaonline.com/index.php?mod=Stepmania+Online&player=sonicsamz”);
// Parse the HTML here.
?>
To get rank, search for "<FONT SIZE=+2><B>Rank " and then read until "</B>" appears.
To get last game name search for "<I><FONT SIZE=+3>" and read until "</FONT>".
Edit: Fixed code.