Comments (3)
This property type bug is caused by
daftlistings/daftlistings/enums.py
Line 6 in a94d211
it should be
"residential-to-rent"
.
I'm not sure about the issue with the bed count... I compared the payload generated with daft._make_payload()
with the payload generated on the webpage and they are identical. There must be further logic in the front-end that does another filter. It may be necessary to add extra code for this.
from daftlistings.
Issue with price/bedroom caused by this
daftlistings/daftlistings/daft.py
Line 158 in a94d211
"range"
should be "ranges"
.from daftlistings.
@EricNeville This is all fixed now.
from daftlistings.daft import Daft
from daftlistings.enums import SearchType, PropertyType
from daftlistings.location import Location
daft = Daft()
daft.set_search_type(SearchType.RESIDENTIAL_RENT)
daft.set_property_type(PropertyType.APARTMENT)
daft.set_location(Location.GRAND_CANAL_DOCK_DUBLIN)
daft.set_location(Location.IFSC_DUBLIN)
daft.set_min_beds(2)
daft.set_max_beds(2)
daft.set_min_price(1500)
daft.set_max_price(3000)
listings = daft.search()
prices = [l.abbreviated_price for l in listings]
prices = [int(p.strip('€').replace(',', '')) for p in prices]
prices = any([p > 3000 or p < 1500 for p in prices])
print('Any prices out of range:', prices)
beds = any(['2' not in l.bedrooms for l in listings])
print('Any without 2 beds:', beds)
Output:
Got 122 results.
Any prices out of range: False
Any without 2 beds: False
Until the pull request is approved you should use this branch.
from daftlistings.
Related Issues (20)
- Inconsistent number of results HOT 3
- PropertyType SearchType combos HOT 2
- abbreviatedPrice is either weekly or monthly
- Facility SearchType Combos HOT 3
- Incorrect results for listings grouped in the same development HOT 7
- Failing unittest
- Can no longer contact advertisor? HOT 2
- Connection error on initial search HOT 1
- Constant _PAGE_0 updated during pagination HOT 2
- When getting the price of the property to rent, the price method of PropertyForSale class is invoked HOT 1
- ImportError: cannot import name 'MapVisualization' HOT 2
- latitude and longitude field query is broken HOT 6
- There's JSON in them there hills
- Fetched 0 listings. HOT 2
- does the lib still works with new Daft UI HOT 11
- Fetched 0 listings HOT 7
- Version 2 HOT 2
- Add Unit Tests HOT 1
- Update documentation and add examples
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from daftlistings.