Completed

php scraping function

We need a simple php scraping function that returns an array as follows:

function getLeaderboards ( $p_source ) {

if ($p_source == "ladbrokes") {

$url = "http://poker.ladbrokes.com/monthly/mtt/";

}elseif($p_source=="bodog"){

$url="[url removed, login to view];;

}

//scraping code goes here

//array is populated here based on the above scraping code

return $array ;

}

We will call the function as follows for testing purposes:

//ladbrokes call

$myresults=getLeaderboards("ladbrokes");

echo '<table><tr><td>Rank</td><td>Player ID</td><td>Chips</td></tr>';

foreach ($myresults as $item) {

echo '<tr><td>'.$item["rank"].'</td><td>'.$item["playername"].'</td><td>'.$item["score"].'</td></tr>';

}

echo '</table>';

//bodog call

$myresults=getLeaderboards("bodog");

echo '<table><tr><td>Rank</td><td>Player ID</td><td>Chips</td></tr>';

foreach ($myresults as $item) {

echo '<tr><td>'.$item["rank"].'</td><td>'.$item["playername"].'</td><td>'.$item["score"].'</td></tr>';

}

echo '</table>';

Please look at the [url removed, login to view] page carefully and note that Position corresponds to $item["rank"], Alias corresponds to $item["playername"] and Points corresponds to $item["score"].

Please note that on the [url removed, login to view] page, Rank corresponds to $item["rank"], Screen Name corresponds to $item["playername"] and Points corresponds to $item["score"].

We're running php4.

Skills: PHP

See more: scraping com, look php id, function getleaderboard, php rank funtion, php scrape table, php scraping view author name, php scraping tables, check page item ranking php, scrape table php, bodoglife online player database url, php scrape function, scraping table php, mysql php rank score leaderboard, scraping tables php, ladbrokes scrape, functions scraping, ladbrokes site scrape, scrape ladbrokes, We Scraping , url scraping

About the Employer:
( 6 reviews ) Antelope, United States

Project ID: #241552

Awarded to:

littlehoi

Please let me help you, Thanks a lot.

$30 USD in 0 days
(0 Reviews)
0.0

8 freelancers are bidding on average $51 for this job

kernelbd

Ready to start. We can do this. Escrow needed. Thanks.

$70 USD in 1 day
(95 Reviews)
6.6
Ivan83

Hi, Please check PM. Thanks.

$80 USD in 1 day
(26 Reviews)
5.3
goldenstar

Hi, please check my PMB. Thanks

$50 USD in 1 day
(48 Reviews)
5.2
theisoft

if interested, pls pm. thanks

$50 USD in 0 days
(8 Reviews)
4.9
Technovice

please check PM

$70 USD in 2 days
(31 Reviews)
4.6
WebScripts4U

Hi, please check PMB

$30 USD in 1 day
(17 Reviews)
4.2
sudheeshphp

Hi I have 3+ years experience in doing live projects. I look to create a freelancer career. We can work in long term too. Payment only after finishing work. Can show all my works on demand too. Lot of commercia More

$30 USD in 1 day
(0 Reviews)
0.0