🐛 Prend les images au lieu des miniatures
This commit is contained in:
parent
56866735b0
commit
ff742cd62c
@ -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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user