pyfunda 2.6.0__tar.gz → 2.6.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyfunda
3
- Version: 2.6.0
3
+ Version: 2.6.2
4
4
  Summary: Python API for Funda.nl real estate listings
5
5
  Project-URL: Homepage, https://github.com/0xMH/pyfunda
6
6
  Project-URL: Repository, https://github.com/0xMH/pyfunda
@@ -421,7 +421,7 @@ class Funda:
421
421
  "path": f"area_with_radius.{actual_radius}",
422
422
  }
423
423
  elif locations:
424
- params["selected_area"] = locations
424
+ params["selected_area"] = [loc.lower() for loc in locations]
425
425
 
426
426
  # Price filter - format depends on offering type
427
427
  if price_min is not None or price_max is not None:
@@ -823,16 +823,25 @@ class Funda:
823
823
  agents = source.get("agent", [])
824
824
  agent = agents[0] if agents else {}
825
825
 
826
+ street = address.get("street_name") or ""
827
+ number = address.get("house_number") or ""
828
+ suffix = address.get("house_number_suffix") or ""
829
+ title = f"{street} {number}".strip()
830
+ if suffix:
831
+ title = f"{title}-{suffix}" if number else f"{title} {suffix}".strip()
832
+
826
833
  listing_data = {
827
834
  "global_id": int(hit.get("_id", 0)),
828
- "title": f"{address.get('street_name', '')} {address.get('house_number', '')}".strip(),
835
+ "title": title,
829
836
  "street_name": address.get("street_name"),
830
837
  "house_number": address.get("house_number"),
831
838
  "house_number_suffix": address.get("house_number_suffix"),
839
+ "house_number_ext": address.get("house_number_suffix"),
832
840
  "city": address.get("city"),
833
841
  "postcode": address.get("postal_code"),
834
842
  "province": address.get("province"),
835
843
  "neighbourhood": address.get("neighbourhood"),
844
+ "wijk": address.get("wijk"),
836
845
  "price": price,
837
846
  "price_condition": price_condition,
838
847
  "living_area": source.get("floor_area", [None])[0] if source.get("floor_area") else None,
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "pyfunda"
7
- version = "2.6.0"
7
+ version = "2.6.2"
8
8
  description = "Python API for Funda.nl real estate listings"
9
9
  readme = "README.md"
10
10
  license = "AGPL-3.0-or-later"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes