client = new Client(); } /** * Execute the console command. * * @return mixed */ public function handle() { $url = $this->argument('url'); if ($url != 'https://www.sixnationsrugby.com/fixtures/') { $this->error('Url not supported'); return; } $crawler = $this->client->request('GET', $this->argument('url')); $crawler->filter('div.fixtures__top-tier')->each( function ($node) { print $node->text()."\n"; } ); } }