[leboncoin] get main photo when there is no carousel
This commit is contained in:
parent
cf6774afe6
commit
c28c42f140
1 changed files with 5 additions and 0 deletions
|
|
@ -176,4 +176,9 @@ class HousingPage(HTMLPage):
|
||||||
default='')(img)
|
default='')(img)
|
||||||
if url:
|
if url:
|
||||||
photos.append(HousingPhoto(url))
|
photos.append(HousingPhoto(url))
|
||||||
|
|
||||||
|
if not photos:
|
||||||
|
img = self.el.xpath('//div[@class="lbcImages"]/meta/@content')
|
||||||
|
if img:
|
||||||
|
photos.append(HousingPhoto(img[0]))
|
||||||
return photos
|
return photos
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue