public static function create() { $client = new Client([RequestOptions::ALLOW_REDIRECTS => false, RequestOptions::COOKIES => true]); return new static($client); }
public function handle() { Crawler::create()->setCrawlProfile($this->getProfile())->setCrawlObserver($this->getReporter())->startCrawling($this->getUrlToBeCrawled()); $this->info('All done!'); }