public function getScrapClient()
    {
        if ($this->scrapClient === null){
            if($this->headlessBrowserEnabled === true){
                $scrapClient = CrawlingFactory::create(CrawlingFactory::TYPE_HEADLESS_BROWSER, $this->config);
            }else{
                $scrapClient = CrawlingFactory::create(CrawlingFactory::TYPE_GOUTTE, $this->config);
            }
            $this->setScrapClient($scrapClient);
        }        
        return $this->scrapClient;
    }