Skip to content

Print listings #149

Answered by sdfordham
ulankford asked this question in Q&A
Discussion options

You must be logged in to vote

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)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AnthonyBloomer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants