Hi,
when I test with http://jonnyw.kiwi/tests/test-lazy.php, everything is ok (got the page and the 'loaded' content). I have an internal error after several minutes with a website I'm scrapping (but no error on 'basic usage script' with delay).
Here is my code:
`
require 'vendor/autoload.php';
use JonnyW\PhantomJs\Client;
$url = "http://jonnyw.kiwi/tests/test-lazy.php";
$client = Client::getInstance();
$client->isLazy();
$request = $client->getMessageFactory()->createRequest();
$request->setMethod('GET');
$request->setUrl($url);
//$request->setTimeout(5000);
$response = $client->getMessageFactory()->createResponse();
$client->send($request, $response);
echo $response->getContent();`
Thanks for your help.
ps: sorry for my english, it's not my primary language.
Hi,
when I test with http://jonnyw.kiwi/tests/test-lazy.php, everything is ok (got the page and the 'loaded' content). I have an internal error after several minutes with a website I'm scrapping (but no error on 'basic usage script' with delay).
Here is my code:
`
require 'vendor/autoload.php';
use JonnyW\PhantomJs\Client;
Thanks for your help.
ps: sorry for my english, it's not my primary language.