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

Property street name is missing N/E/W/S Directions #41

Closed
dino1729 opened this issue Nov 8, 2023 · 2 comments · Fixed by #42
Closed

Property street name is missing N/E/W/S Directions #41

dino1729 opened this issue Nov 8, 2023 · 2 comments · Fixed by #42

Comments

@dino1729
Copy link

dino1729 commented Nov 8, 2023

In the latest homeharvest version (0.3.8), the property's street name in the scrapped data is missing the direction:

19754 Sonia Ln

instead of

19754 SW Sonia Ln

@ZacharyHampton
Copy link
Member

Hey, could you give an example search? I will fix this ASAP.

@dino1729
Copy link
Author

dino1729 commented Nov 8, 2023

Hi,

Thanks for your quick reply.

Here is an example code:
from homeharvest import scrape_property
from datetime import datetime

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

properties = scrape_property(
location="97007",
listing_type="sold", # or (for_sale, for_rent)
past_days=30, # sold in last 30 days - listed in last x days if (for_sale, for_rent)
# pending_or_contingent=True # use on for_sale listings to find pending / contingent listings
# 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)}")

properties.to_csv(filename, index=False)
print(properties.head())

The resultant csv file doesn't have the directions in the "street" column for any of the line item.

image

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

Successfully merging a pull request may close this issue.

2 participants