[leboncoin] management of url field
This commit is contained in:
parent
77995378c5
commit
cdab615d92
1 changed files with 2 additions and 1 deletions
|
|
@ -19,7 +19,7 @@
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
from weboob.browser.pages import HTMLPage, pagination
|
from weboob.browser.pages import HTMLPage, pagination
|
||||||
from weboob.browser.elements import ItemElement, ListElement, method
|
from weboob.browser.elements import ItemElement, ListElement, method
|
||||||
from weboob.browser.filters.standard import CleanText, Regexp, CleanDecimal, Env, DateTime
|
from weboob.browser.filters.standard import CleanText, Regexp, CleanDecimal, Env, DateTime, BrowserURL
|
||||||
from weboob.browser.filters.html import Attr, Link
|
from weboob.browser.filters.html import Attr, Link
|
||||||
from weboob.capabilities.housing import City, Housing, HousingPhoto
|
from weboob.capabilities.housing import City, Housing, HousingPhoto
|
||||||
from datetime import date, timedelta
|
from datetime import date, timedelta
|
||||||
|
|
@ -145,6 +145,7 @@ class HousingPage(HTMLPage):
|
||||||
obj_location = Env('location')
|
obj_location = Env('location')
|
||||||
obj_details = Env('details')
|
obj_details = Env('details')
|
||||||
obj_area = Env('area')
|
obj_area = Env('area')
|
||||||
|
obj_url = BrowserURL('housing', _id=Env('_id'))
|
||||||
|
|
||||||
def obj_date(self):
|
def obj_date(self):
|
||||||
_date = Regexp(CleanText('//div[@class="upload_by"]', replace=[(u'à', '')]),
|
_date = Regexp(CleanText('//div[@class="upload_by"]', replace=[(u'à', '')]),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue