mirror of
https://github.com/Bunsly/HomeHarvest.git
synced 2026-03-05 20:14:30 -08:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e8d9235ee6 | ||
|
|
043f091158 | ||
|
|
eae8108978 |
@@ -17,7 +17,7 @@
|
|||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip install --force-reinstall homeharvest
|
pip install homeharvest
|
||||||
```
|
```
|
||||||
_Python version >= [3.10](https://www.python.org/downloads/release/python-3100/) required_
|
_Python version >= [3.10](https://www.python.org/downloads/release/python-3100/) required_
|
||||||
|
|
||||||
|
|||||||
@@ -49,21 +49,21 @@ class RedfinScraper(Scraper):
|
|||||||
unit = parse_unit(get_value("streetLine"))
|
unit = parse_unit(get_value("streetLine"))
|
||||||
address = Address(
|
address = Address(
|
||||||
street_address=street_address,
|
street_address=street_address,
|
||||||
city=home["city"],
|
city=home.get("city"),
|
||||||
state=home["state"],
|
state=home.get("state"),
|
||||||
zip_code=home["zip"],
|
zip_code=home.get("zip"),
|
||||||
unit=unit,
|
unit=unit,
|
||||||
country="USA",
|
country="USA",
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
address_info = home["streetAddress"]
|
address_info = home.get("streetAddress")
|
||||||
street_address, unit = parse_address_two(address_info["assembledAddress"])
|
street_address, unit = parse_address_two(address_info.get("assembledAddress"))
|
||||||
|
|
||||||
address = Address(
|
address = Address(
|
||||||
street_address=street_address,
|
street_address=street_address,
|
||||||
city=home["city"],
|
city=home.get("city"),
|
||||||
state=home["state"],
|
state=home.get("state"),
|
||||||
zip_code=home["zip"],
|
zip_code=home.get("zip"),
|
||||||
unit=unit,
|
unit=unit,
|
||||||
country="USA",
|
country="USA",
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "homeharvest"
|
name = "homeharvest"
|
||||||
version = "0.2.5"
|
version = "0.2.6"
|
||||||
description = "Real estate scraping library supporting Zillow, Realtor.com & Redfin."
|
description = "Real estate scraping library supporting Zillow, Realtor.com & Redfin."
|
||||||
authors = ["Zachary Hampton <zachary@zacharysproducts.com>", "Cullen Watson <cullen@cullen.ai>"]
|
authors = ["Zachary Hampton <zachary@zacharysproducts.com>", "Cullen Watson <cullen@cullen.ai>"]
|
||||||
homepage = "https://github.com/ZacharyHampton/HomeHarvest"
|
homepage = "https://github.com/ZacharyHampton/HomeHarvest"
|
||||||
@@ -21,4 +21,4 @@ pytest = "^7.4.2"
|
|||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core"]
|
requires = ["poetry-core"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|||||||
Reference in New Issue
Block a user