Annulleret

php scraping function

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

function getLeaderboards ( $p_source ) {

if ($p_source == "fulltilt") {

$url = "[url removed, login to view];lb_key=1&key=";

}

//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:

//fulltilt call

$myresults=getLeaderboards("fulltilt");

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];lb_key=1&key= page carefully and note that RANK corresponds to $item["rank"], PLAYER ID corresponds to $item["playername"] and CHIPS corresponds to $item["score"]. We need to scrape all 250 positions on the page.

We're running php4.

Færdigheder: PHP

Se mere: look php, php testing, leaderboard, function, note php, php table array, simple function, call function, testing call, php url amp, table php, code function, url amp php, function look table php, populated, based positions, note player, php code call url, php table code, php code function, php return, simple url php, php rank, php call url, player running

Om arbejdsgiveren:
( 34 bedømmelser ) Ishpeming, United States

Projekt-ID: #309135

19 freelancere byder i gennemsnit $86 for dette job

toinnisfree

pls chk pmb

$135 USD in 3 dage
(668 bedømmelser)
8.2
mistersoft

Will be done as described. Thanks!

$250 USD in 3 dage
(409 bedømmelser)
7.7
oscguy

Hi, I have just checked the list! i have done some same web data extract script like this before so i can complete the script quickly around some hours with my strong skills there Regards

$150 USD in 0 dage
(25 bedømmelser)
7.1
royind

Let's start. Thanks.

$150 USD på 1 dag
(40 bedømmelser)
6.7
TechnoVilla

Please check PM

$30 USD in 3 dage
(24 bedømmelser)
5.7
eXternalDesign

Kindly see your PM.

$50 USD på 1 dag
(45 bedømmelser)
6.2
is00hcw

I have experience of scraping data. Let me help you.

$30 USD på 1 dag
(23 bedømmelser)
4.9
StudioCreative

PHP EXPERT. CHECK PM PLZ

$100 USD på 1 dag
(8 bedømmelser)
5.0
zhukaster

2-4 hours and data will be yours. THanks

$33 USD på 1 dag
(22 bedømmelser)
4.6
robertcleaver

I can provide you with a scalable PHP object with ROBUST functionality and good error handling in a very expedient fashion. Thank you for your consideration! Regards, Robert Cleaver - Central Texas Coders

$200 USD på 1 dag
(5 bedømmelser)
4.2
ossolution4u

please kindly check pmb for details, thank you.

$50 USD in 0 dage
(5 bedømmelser)
2.7
sourabhgupta3838

less than 5 mins task.. script is ready... i can show you

$40 USD in 0 dage
(4 bedømmelser)
2.5
dssoft

Check Pmb plz

$50 USD in 0 dage
(2 bedømmelser)
2.0
zubrag

Will be done.

$100 USD in 2 dage
(0 bedømmelser)
0.0
NelsonNet

It looks simple enough to accomplish the task in one day and with high quality. Try me and you will not be disappointed.

$30 USD in 2 dage
(0 bedømmelser)
0.0
salehinalif

see the pm

$30 USD in 0 dage
(0 bedømmelser)
0.0
deascript

already done. working link for test send in PM

$30 USD in 0 dage
(0 bedømmelser)
0.0
GenxSoftware

hi,please check pmb.thanks

$30 USD in 0 dage
(0 bedømmelser)
0.0
Ethersoft08

I can do this work with in 2 days

$150 USD in 2 dage
(0 bedømmelser)
0.0