Merge remote-tracking branch 'origin' into tidy_up_readme

pull/6/head
Cullen Watson 2023-09-18 20:01:59 -05:00
commit 906ce92685
2 changed files with 5 additions and 17 deletions

View File

@ -30,20 +30,8 @@ properties: pd.DataFrame = scrape_property(
listing_type="for_rent" # for_sale / sold listing_type="for_rent" # for_sale / sold
) )
#1 output to .csv (simplest, then use Excel) #: Note, to export to CSV or Excel, use properties.to_csv() or properties.to_excel().
properties.to_csv('props.csv', index=False) print(properties)
#2 display in Jupyter Notebook (1. pip install jupyter 2. jupyter notebook)
# formatting for pandas
#pd.set_option('display.max_columns', None)
#pd.set_option('display.max_rows', None)
#pd.set_option('display.width', None)
#pd.set_option('display.max_colwidth', 50) # set to 0 to see full property_url / descr
#display(properties)
#3 output to console
#print(properties)
``` ```
@ -130,14 +118,14 @@ The following exceptions may be raised when using HomeHarvest:
- `InvalidSite` - valid options: `zillow`, `redfin`, `realtor.com` - `InvalidSite` - valid options: `zillow`, `redfin`, `realtor.com`
- `InvalidListingType` - valid options: `for_sale`, `for_rent`, `sold` - `InvalidListingType` - valid options: `for_sale`, `for_rent`, `sold`
- `NoResultsFound` - no properties found from your input - `NoResultsFound` - no properties found from your input
- `GeoCoordsNotFound` - if Zillow scraper is not able to create geo-coordinates from the locaion you input - `GeoCoordsNotFound` - if Zillow scraper is not able to create geo-coordinates from the location you input
## Frequently Asked Questions ## Frequently Asked Questions
--- ---
**Q: Encountering issues with your queries?** **Q: Encountering issues with your queries?**
**A:** Try a single site and/or broadening the location. If problems persist, [submit an issue](https://github.com/ZacharyHampton/HomeHarvest/issues). **A:** Try a single site and/or broaden the location. If problems persist, [submit an issue](https://github.com/ZacharyHampton/HomeHarvest/issues).
--- ---

View File

@ -1,7 +1,7 @@
[tool.poetry] [tool.poetry]
name = "homeharvest" name = "homeharvest"
version = "0.2.0" version = "0.2.0"
description = "Real estate scraping library" 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"
readme = "README.md" readme = "README.md"