Replies: 1 comment
-
|
Looks like this is enough to repair the thing from daftlistings import Daft, Location, SearchType, PropertyType
import requests
daft = Daft()
daft.set_search_type(SearchType.RESIDENTIAL_RENT)
daft.set_property_type(PropertyType.APARTMENT)
payload = daft._make_payload()
new_endpoint = "https://gateway.daft.ie/old/v1/listings"
new_header = {
"User-Agent": "",
"brand": "daft",
"platform": "web",
}
r = requests.post(url=new_endpoint, headers=new_header, json=payload)
print(r.json()) |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Ref #165
New endpoint is https://gateway.daft.ie/old/v1/listings
Minimum request header now looks like this
Beta Was this translation helpful? Give feedback.
All reactions