Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Historical Sale Transactions For Each Property As Individual Line Item #112

Open
alphasynth opened this issue Feb 1, 2025 · 2 comments
Open

Comments

@alphasynth
Copy link

alphasynth commented Feb 1, 2025

Thank you for building Home Harvest and for making it open source! It appears that homes selling multiple times within an allotted time frame only show up as a single line item.

Is there a way to return each sale transaction as an individual line item?

@ZacharyHampton
Copy link
Owner

Could you show an example of a HomeHarvest search with a home that has this case?

@alphasynth
Copy link
Author

Code below outputs 301 properties. See 22240 Cohasset St, Canoga Park, CA 91303.

Realtor.com shows that the property was sold twice between 2020 and 2023. The earlier sale on November 25, 2020 and the most recent sale on April 26, 2023.

HomeHarvest shows the property as one line reflecting the most recently sold date of April 26, 2023.

It would be great if each of the sales were output on an individual line.

from homeharvest import scrape_property
from datetime import datetime

current_timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
filename = f"HomeHarvest_{location}_{current_timestamp}.csv"
location="91303"

properties = scrape_property(
  location={location},
  listing_type="sold",

  date_from="2020-11-01",
  date_to="2023-04-30",

  extra_property_data=True,
)

print(f"Number of properties: {len(properties)}")

# Export to csv
properties.to_csv(filename, index=False)
print(properties.head())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants