woob.capabilities.housing
¶
- class CapHousing[source]¶
Bases:
Capability
Capability of websites to search housings.
- class Housing(id='', url=NotLoaded, backend=None)[source]¶
Bases:
BaseObject
Content of a housing.
- Variables:
url – (
str
) urltype – (
str
) Type of housing (rent, sale, sharing)advert_type – (
str
) Type of advert (professional or personal)house_type – (
str
) Type of house (apartment, house, parking, …)title – (
str
) Title of housingarea – (
Decimal
) Area of housing, in m2cost – (
Decimal
) Cost of housingprice_per_meter – (
Decimal
) Price per meter ratiocurrency – (
str
) Currency of costutilities – (
str
) Utilities included or notdate – (
date
,datetime
) Date when the housing has been publishedaddress – (
PostalAddress
) Location of housingstation – (
str
) What metro/bus station next to housingtext – (
str
) Text of the housingphone – (
str
) Phone number to contactphotos – (
list
) List of photosrooms – (
Decimal
) Number of roomsbedrooms – (
Decimal
) Number of bedroomsdetails – (
dict
) Key/values of detailsDPE – (
str
) DPE (Energy Performance Certificate)GES – (
str
) GES (Greenhouse Gas Emissions)
- property location¶
- class Query(id='', url=NotLoaded, backend=None)[source]¶
Bases:
BaseObject
Query to find housings.
- Variables:
url – (
str
) urltype – (
str
) Type of housing to find (POSTS_TYPES constants)area_min – (
int
) Minimal area (in m2)area_max – (
int
) Maximal area (in m2)cost_min – (
int
) Minimal costcost_max – (
int
) Maximal costnb_rooms – (
int
) Number of roomshouse_types – (
list
,tuple
) List of house types (default: [‘Apartment’, ‘House’, ‘Parking’, ‘Land’, ‘Other’, ‘Unknown’])advert_types – (
list
,tuple
) List of advert types to filter on (default: [‘Professional’, ‘Personal’])
- class City(id='', url=NotLoaded, backend=None)[source]¶
Bases:
BaseObject
City.
- class UTILITIES(*args, **kwargs)[source]¶
Bases:
Enum
- INCLUDED = 'C.C.'¶
- EXCLUDED = 'H.C.'¶
- UNKNOWN = ''¶
- class ENERGY_CLASS(*args, **kwargs)[source]¶
Bases:
Enum
- A = 'A'¶
- B = 'B'¶
- C = 'C'¶
- D = 'D'¶
- E = 'E'¶
- F = 'F'¶
- G = 'G'¶
- class POSTS_TYPES(*args, **kwargs)[source]¶
Bases:
Enum
- RENT = 'RENT'¶
- SALE = 'SALE'¶
- SHARING = 'SHARING'¶
- FURNISHED_RENT = 'FURNISHED_RENT'¶
- VIAGER = 'VIAGER'¶
- class ADVERT_TYPES(*args, **kwargs)[source]¶
Bases:
Enum
- PROFESSIONAL = 'Professional'¶
- PERSONAL = 'Personal'¶
- class HOUSE_TYPES(*args, **kwargs)[source]¶
Bases:
Enum
- APART = 'Apartment'¶
- HOUSE = 'House'¶
- PARKING = 'Parking'¶
- LAND = 'Land'¶
- OTHER = 'Other'¶
- UNKNOWN = 'Unknown'¶
- exception TypeNotSupported(msg='This type of house is not supported by this module')[source]¶
Bases:
UserError
Raised when query type is not supported
- class HousingPhoto(url)[source]¶
Bases:
BaseImage
Photo of a housing.
- Variables:
url – (
str
) urltitle – (
str
) File titleext – (
str
) File extensionmime_type – (
str
) MIME Typeauthor – (
str
) File authordescription – (
str
) File descriptiondate – (
date
,datetime
) File publication datelast_update – (
date
,datetime
) Last update or last modified date (default: Not available)size – (
int
) File size in bytes (default: Not available)rating_max – (
int
,float
) Maximum rating (default: Not available)license – (
str
) License namensfw – (
bool
) Is this Not Safe For Work (default: False)thumbnail – (
Thumbnail
) Thumbnail of the imagedata – (
bytes
) Data of photo