diff --git a/src/Arachnid/Adapters/PantherChromeAdapter.php b/src/Arachnid/Adapters/PantherChromeAdapter.php index 2c99dd7..a752308 100644 --- a/src/Arachnid/Adapters/PantherChromeAdapter.php +++ b/src/Arachnid/Adapters/PantherChromeAdapter.php @@ -8,12 +8,12 @@ class PantherChromeAdapter implements CrawlingAdapterInterface { private $client; - - public function __construct() + + public function __construct(array $options) { - $this->client = PantherClient::createChromeClient(); + $this->client = PantherClient::createChromeClient(null, null, $options); } - + public function requestPage($url): Crawler { return $this->client->request('GET', $url); diff --git a/src/Arachnid/Crawler.php b/src/Arachnid/Crawler.php index 55f3450..3629e00 100644 --- a/src/Arachnid/Crawler.php +++ b/src/Arachnid/Crawler.php @@ -87,6 +87,12 @@ class Crawler */ private $headlessBrowserEnabled; + /** + * Links' container + * @var array + */ + private $links; + /** * Constructor * @param string $baseUrl base url to be crawled