filter('ol#b_results > li.b_algo')->each(function (Crawler $node, $i) { $title = $node->filter('li h2 > a')->text(); $link = $node->filter('li h2 > a')->attr('href'); $anzeigeLink = $link; $descr = $node->filter('li div > p')->text(); $this->counter++; $this->results[] = new \App\Models\Result( $this->engine, $title, $link, $anzeigeLink, $descr, $this->gefVon, $this->counter ); }); } catch (\ErrorException $e) { return; } } }