Project Detail

Script Fix  

Script Fix is project number 395684
posted at Freelancer.com. Click here to post your own project.

 

| More
Free Trial For New Buyers
 

Status:

Selected Providers: eXternalDesign

Budget: $30-250

Created: 03/03/2009 at 16:04 EST

Bid Count: 2

Average Bid:
$ 40

03/13/2009 at 16:04 EDT

Project Creator: dotdoms
Employer Rating: 10/1010/1010/1010/1010/1010/1010/1010/1010/1010/10 (9 reviews)

Bid On This Project
 

Description

Hello,

I´m currently running a crawler that uses the phpcrawler php class which works fine with almost all pages/urls, but with certain pages there occurs a problem which basically is that the script stops working without giving any error message or anything like that.

Now an example of a page on such a problem occurs would be:
http://www.ejk-kajak.de

Now here would be a demo code, which would simply stop - always at the same page (teamer.htm):


include("classes/phpcrawler.class.php");

class MyCrawler extends PHPCrawler
{
function handlePageData($page_data)
{
echo "Page requested: ".$page_data["url"]."<br>";
echo "Status: ".strtok($page_data["header"], "\n")."<br>";
echo "Referer-page: ".$page_data["referer_url"]."<br>";
if ($page_data["received"]==true)
echo "Content received: ".$page_data["bytes_received"]." bytes";
else
echo "Content not received";

echo str_pad(" ", 5000); // "Force flush", workaround
flush();
}
}



// Klasse laden
$crawler = new MyCrawler();

$crawler->setURL("http://www.ejs-kajak.de");
$crawler->setFollowMode(1);
$crawler->addReceiveContentType("/text\/html/");
$crawler->addNonFollowMatch("/.(jpg|gif|png)$/ i");
$crawler->setCookieHandling(true);
$crawler->setTrafficLimit(0);
$crawler->setPageLimit(0);
$crawler->go();
$report = $crawler->getReport();
print_r($report);


Now the job would be to fix the class, so that this doesn´t happen any more.

Job Type

Messages Posted:0 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

 

50

0 days

03-03-2009 16:19 EST

Kindly see your PM.

help

 

30

1 day

03-03-2009 16:18 EST

(No Feedback Yet)

If you agree I will take a look at your scripts

help


    Bid on this Project