Print listings
#149
-
Is it possible when searching for residential sales to print more objects? E.g. Number of Bedrooms |
Beta Was this translation helpful? Give feedback.
Answered by
sdfordham
May 9, 2022
Replies: 1 comment
-
Yes there are many more attributes see the class methods for the Listing class. Here is a MWE for number of bedrooms: from daftlistings import Daft, Location, SearchType, PropertyType
daft = Daft()
daft.set_location(Location.DUBLIN)
daft.set_search_type(SearchType.RESIDENTIAL_SALE)
daft.set_property_type(PropertyType.HOUSE)
daft.set_min_price(400000)
daft.set_max_price(500000)
listings = daft.search()
for listing in listings:
print(listing.bedrooms) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AnthonyBloomer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes there are many more attributes see the class methods for the Listing class.
Here is a MWE for number of bedrooms: