diff --git a/app/Parser/LannionImmo.php b/app/Parser/LannionImmo.php index 00ae582..a48b230 100644 --- a/app/Parser/LannionImmo.php +++ b/app/Parser/LannionImmo.php @@ -52,6 +52,10 @@ class LannionImmo extends Parser $parsedHome->pictures = $crawler ->filter('.rsImg') ->each(static function (Crawler $node, $i) { + if (strtolower($node->nodeName()) === 'a') { + return $node->attr('href'); + } + if ($node->children('img')) { return $node->children('img')->attr('src'); }