Log in

View Full Version : script to store stats from another website



dazbobaby
07-03-2009, 02:04 PM
I'm looking into creating a leaderboard on my forum.
But I need a script that will search a given webpage, look for specific items to store, such as score, kills, deaths etc.
Then I can either store it locally for upload later, or connect to my db and upload it immediately.

I have no idea where to begin, so any advice, pointers, webpages that I can use to help me start putting it together would be a huge help.
Thanks
Darron

dazbobaby
07-03-2009, 10:00 PM
Sorry Nolde, it's not even close to what I want.
So, let me expand my description.
I want to take stats from an EA website:
http://badcompany.ea.com/myprofile/ps3/dazbobaby

Now you need both and EA account and to be logged in, but once in the stats are in the HTML.
What I need is a script that reads the info from the htm like this...

<td width="17%" class="th">Total Score</td>
<td width="17%">392478</td>
<td width="17%" class="th">Score per Minute</td>
<td width="17%">5.185</td>
<td width="17%" class="th">In-Game Rank</td>

<td width="17%">General of the Army</td>
</tr>
<tr class="alt">
<td class="th">Kills</td>
<td>18319</td>
<td class="th">Deaths</td>
<td>10816</td>

<td class="th">Kill/Death Ratio</td>
<td>1.694</td>


Then do the same with another player...
http://badcompany.ea.com/myprofile/ps3/theDAZBOMEGATRON

and so forth until all the players have been listed, then put that information into a table on my forum.
There are as many as 20 different players that this script needs to work for.
Thanks,
Darron