$client = new Client();
$crawler = $client->request('GET', 'https://scholar.google.com/citations?user=EnegzCwAAAAJ&hl=en&oi=ao');
$crawler->filter('#gsc_a_t')->each(function ($item) {
$header = $item->filter('th')->first();
$data = $item->filter('td')->first();
$this->results[$header->text()] = $item->filter('td')->first()->text();
dd($item->filter('#gsc_a_b')->text());
});
Getting the data in a clumsy format and I wanted to print whole table data in exact format as its shown on the website with the links on it. I searched a lot but didn't find any solution.
I want to store tr in tr[] td in td[] and tabledatalinks in tdlink[] and then just display the exact format as its shown in my view.