[weboob] [PATCH 1/1] leboncoin: add url attribute on objects built from list

Simon Lipp laiquo at hwold.net
Tue Jan 3 16:47:53 CET 2017


Signed-off-by: Simon Lipp <laiquo at hwold.net>
---
 modules/leboncoin/pages.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/leboncoin/pages.py b/modules/leboncoin/pages.py
index ad07e78ea..59b448116 100644
--- a/modules/leboncoin/pages.py
+++ b/modules/leboncoin/pages.py
@@ -100,6 +100,7 @@ class HousingListPage(HTMLPage):
             def validate(self, obj):
                 return obj.id is not None
 
+            obj_url = Format(u'http:%s', Link('.'))
             obj_id = Regexp(Link('.'),
                             '//www.leboncoin.fr/(ventes_immobilieres|locations|colocations)/(.*).htm.*',
                             '\\2', default=None)
-- 
2.11.0



More information about the weboob mailing list