def set_listing_type(self, listing_type):
        """
        The listings you'd like to scrape i.e houses, properties, auction, commercial or apartments.
        Use the SaleType or RentType enum to select the listing type.
        i.e set_listing_type(SaleType.PROPERTIES)
        :param listing_type:
        :return:
        """

        if not isinstance(listing_type, SaleType) and not isinstance(listing_type, RentType):
            raise DaftException("listing_type should be an instance of SaleType or RentType.")

        self._listing_type = listing_type
def set_listing_type ( self , listing_type ) : if not isinstance ( listing_type , SaleType ) and not isinstance ( listing_type , RentType ) : raise DaftException ( "listing_type should be an instance of SaleType or RentType." ) self . _listing_type = listing_type
The listings you'd like to scrape i.e houses, properties, auction, commercial or apartments.
        Use the SaleType or RentType enum to select the listing type.
        i.e set_listing_type(SaleType.PROPERTIES)
        :param listing_type:
        :return: