From ff742cd62cd9702d5d36834ab4ebe7fbc8281a33 Mon Sep 17 00:00:00 2001 From: Clement Date: Fri, 11 Sep 2020 10:22:54 +0200 Subject: [PATCH] :bug: Prend les images au lieu des miniatures --- app/Parser/LannionImmo.php | 4 ++++ 1 file changed, 4 insertions(+) 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'); }