Replies: 2 comments
-
The PyPI version does not have this yet since its a recent addition, you will have to wait on @AnthonyBloomer to upload a new wheel. Two options:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Published a new version to PyPi which includes the size_meters_squared method. https://pypi.org/project/daftlistings/2.0.2/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
Thanks a milltion for making this available, I'm trying to get the size of the properties I'm searching for:
from daftlistings import Daft, Location, SearchType, PropertyType
daft = Daft()
daft.set_location([Location.ASHTOWN_DUBLIN])
daft.set_property_type(PropertyType.HOUSE)
daft.set_search_type(SearchType.RESIDENTIAL_SALE)
listings = daft.search()
for listing in listings:
print(listing.price)
print(listing.size_meters_squared)`
OUTPUT
Search complete. Found 2 listings.
€485,000
Traceback (most recent call last):
File "daft.py", line 28, in
print(listing.size_meters_squared)
AttributeError: 'Listing' object has no attribute 'size_meters_squared'
Am I missing something??
Beta Was this translation helpful? Give feedback.
All reactions