Exemplo n.º 1
0
 def obj_photos(self):
     photos = []
     for img in XPath('//div[has-class("owl-carousel-thumbs")]//img/@src')(self):
         photos.append(HousingPhoto(u'%s' % img))
     return photos
Exemplo n.º 2
0
 def obj_photos(self):
     photos = []
     for img in XPath('//div[@class="showcase-thumbnail"]/img/@src')(
             self):
         photos.append(HousingPhoto(u'%s' % img))
     return photos
Exemplo n.º 3
0
 def obj_photos(self):
     photos = []
     for img in self.el.xpath('//ul[@id="ulPhotos"]/li/img/@src'):
         url = u'http://www.entreparticuliers.com/%s' % img
         photos.append(HousingPhoto(url))
     return photos
Exemplo n.º 4
0
 def obj_photos(self):
     photos = []
     for img in XPath('./div[@class="box-body"]/div/div/a/img/@src')(self):
         photos.append(HousingPhoto(u'%s' % img))
     return photos
Exemplo n.º 5
0
 def obj_photos(self):
     return [
         HousingPhoto(u'%s' % img) for img in XPath(
             '//div[@class="carousel"]/ul/li/a/img/@src')(self)
     ]
Exemplo n.º 6
0
 def obj_photos(self):
     photos = []
     url = Attr('./div[@class="item_image"]/span/span/img', 'src', default=None)(self)
     if url:
         photos.append(HousingPhoto(url))
     return photos
Exemplo n.º 7
0
 def obj_photos(self):
     url = CleanText('./div/div/a/img[@itemprop="image"]/@src')(self)
     return [HousingPhoto(url)]
Exemplo n.º 8
0
 def obj_photos(self):
     photos = []
     for photo in self.xpath('//div[@id="miniatures-carousel"]//img'):
         photo_url = BASE_URL + '/' + Attr('.', 'data-big-photo')(photo)
         photos.append(HousingPhoto(photo_url))
     return photos
Exemplo n.º 9
0
 def obj_photos(self):
     photos = []
     for photo in Dict('photos')(self):
         photos.append(HousingPhoto(photo))
     return photos
Exemplo n.º 10
0
 def obj_photos(self):
     photos = []
     for img in XPath('//a[@class="thumbnail-link"]/img[@itemprop="image"]')(self):
         url = Regexp(CleanText('./@src'), 'http://thbr\.figarocms\.net.*(http://.*)')(img)
         photos.append(HousingPhoto(url))
     return photos
Exemplo n.º 11
0
 def obj_photos(self):
     photos = []
     for img in XPath('//div[@class="owl-thumbs"]/a/img/@src')(self):
         if not img.endswith('miniature-video.png'):
             photos.append(HousingPhoto(u'%s' % img))
     return photos
Exemplo n.º 12
0
 def obj_photos(self):
     photos = []
     for img in Dict('adview/images/urls_large', default=[])(self):
         photos.append(HousingPhoto(img))
     return photos
Exemplo n.º 13
0
 def obj_photos(self):
     photos = []
     for img in XPath('//div[@class="owl-thumbs"]/a/img/@src')(self):
         photos.append(HousingPhoto(u'%s' % img))
     return photos
Exemplo n.º 14
0
 def obj_photos(self):
     photos = []
     for img in XPath('//div[@class="vignette-annonce"]/a/span/img/@src')(self):
         photos.append(HousingPhoto(u'%s' % img))
     return photos
Exemplo n.º 15
0
 def obj_photos(self):
     photos = []
     for img in XPath('//div[@class="carousel-content"]/ul/li/a/img/@src')(self):
         photos.append(HousingPhoto(u'%s' % img))
     return photos