From f8d91bb8e31bd5778d595a652cac415ac4e82d6c Mon Sep 17 00:00:00 2001 From: Bezleputh Date: Tue, 2 Dec 2014 16:05:30 +0100 Subject: [PATCH] [explorimmo] site changed --- modules/explorimmo/pages.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/explorimmo/pages.py b/modules/explorimmo/pages.py index 173d7241..dc4cc91a 100644 --- a/modules/explorimmo/pages.py +++ b/modules/explorimmo/pages.py @@ -125,8 +125,9 @@ class HousingPage2(JsonPage): def obj_photos(self): photos = [] for img in Dict('characteristics/images')(self): - m = re.search('.*(http://photos.ubiflow.net.*)', img) + m = re.search('http://thbr\.figarocms\.net.*(http://.*)', img) if m: + print m.group(0) photos.append(HousingPhoto(m.group(1))) return photos @@ -164,7 +165,7 @@ class HousingPage(HTMLPage): def obj_photos(self): photos = [] for img in XPath('//a[@class="thumbnail-link"]/img[@itemprop="image"]')(self): - url = Regexp(CleanText('./@src'), '.*(http://photos.ubiflow.net.*)')(img) + url = Regexp(CleanText('./@src'), 'http://thbr\.figarocms\.net.*(http://.*)')(img) photos.append(HousingPhoto(url)) return photos