add parameter 'nb_rooms' in queries
This commit is contained in:
parent
825dc0b5b1
commit
b6379f7f37
9 changed files with 71 additions and 7 deletions
|
|
@ -63,7 +63,7 @@ class HousingPage(BasePage):
|
|||
|
||||
housing.title = details.find('titre').text
|
||||
housing.text = details.find('descriptif').text.strip()
|
||||
housing.cost = int(details.find('prix').text)
|
||||
housing.cost = float(details.find('prix').text)
|
||||
housing.currency = u'€'
|
||||
housing.date = parse_date(details.find('dtfraicheur').text)
|
||||
housing.area = float(details.find('surface').text)
|
||||
|
|
@ -92,4 +92,6 @@ class HousingPage(BasePage):
|
|||
for detail in details.xpath('./details/detail'):
|
||||
housing.details[detail.find('libelle').text.strip()] = detail.find('valeur').text or 'N/A'
|
||||
|
||||
housing.details['Reference'] = details.find('reference').text
|
||||
|
||||
return housing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue