Results 1 to 2 of 2

Thread: script to store stats from another website

  1. #1
    Join Date
    Feb 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default script to store stats from another website

    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

  2. #2
    Join Date
    Feb 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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...
    Code:
    		<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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •