-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a74c1a9
commit 6dd0b05
Showing
5 changed files
with
75 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "homeharvest" | ||
version = "0.3.9" | ||
version = "0.3.10" | ||
description = "Real estate scraping library supporting Zillow, Realtor.com & Redfin." | ||
authors = ["Zachary Hampton <[email protected]>", "Cullen Watson <[email protected]>"] | ||
homepage = "https://github.com/Bunsly/HomeHarvest" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from homeharvest import scrape_property | ||
from datetime import datetime | ||
|
||
# Generate filename based on current timestamp | ||
current_timestamp = datetime.now().strftime("%Y%m%d_%H%M%S") | ||
filename = f"HomeHarvest_{current_timestamp}.csv" | ||
|
||
properties = scrape_property( | ||
location="8134 midway rd dallas tx 75209", | ||
listing_type="pending", # or (for_sale, for_rent, pending) | ||
radius=0.5 | ||
# past_days=30, # sold in last 30 days - listed in last 30 days if (for_sale, for_rent) | ||
|
||
# date_from="2023-05-01", # alternative to past_days | ||
# date_to="2023-05-28", | ||
|
||
# mls_only=True, # only fetch MLS listings | ||
# proxy="http://user:pass@host:port" # use a proxy to change your IP address | ||
) | ||
print(f"Number of properties: {len(properties)}") | ||
|
||
# Export to csv | ||
properties.to_csv(filename, index=False) | ||
print(properties.head()) |