🐛 Prend les images au lieu des miniatures

This commit is contained in:
Clement 2020-09-11 10:22:54 +02:00
parent 56866735b0
commit ff742cd62c

View File

@ -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');
}