Skip to content

Ryang20718/Zillow-Scrape

Repository files navigation

README Must export path to chromedriver FOLDER export PATH=$PATH:/path/to/driver/chrome-driver

change csv to redfin.scv

This is a Python wrapper for Zillow's API.

Currrently it supports the GetDeepSearchResults and GetUpdatedPropertyDetails APIs.

It allows you to directly convert an address/zipcode (GetDeepSearchResults API) or zillow id (GetUpdatedPropertyDetails API) into real estate data from the Zillow database.

Dependencies It requires the xml.etree module, included with Python versions 2.7 and later. The requests library is also needed and will be installed by setuptools.

It is developed on Python 2.7 but should work on earlier versions. We have not tested it with Python 3. Sorry.

Installation You can install this package using pip:

pip install pyzillow or download the source from https://github.com/hanneshapke/pyzillow and install

python setup.py install Usage of the GetDeepSearchResults API from pyzillow.pyzillow import ZillowWrapper, GetDeepSearchResults ... address = 'YOUR ADDRESS' zipcode = 'YOUR ZIPCODE' ... zillow_data = ZillowWrapper(YOUR_ZILLOW_API_KEY) deep_search_response = zillow_data.get_deep_search_results(address, zipcode) result = GetDeepSearchResults(deep_search_response) ... result.zillow_id # zillow id, needed for the GetUpdatedPropertyDetails The following attributes are currently supported:

  • zillow_id

  • home_type

  • home_detail_link

  • graph_data_link

  • map_this_home_link

  • latitude

  • latitude

  • coordinates

  • tax_year

  • tax_value

  • year_built

  • property_size

  • home_size

  • bathrooms

  • bedrooms

  • last_sold_date

  • last_sold_price_currency

  • last_sold_price Usage of the GetUpdatedPropertyDetails API from pyzillow.pyzillow import ZillowWrapper, GetUpdatedPropertyDetails ... zillow_id = 'YOUR ZILLOW ID' ... zillow_data = ZillowWrapper(YOUR_ZILLOW_API_KEY) updated_property_details_response = zillow_data.get_updated_property_details(zillow_id) result = GetUpdatedPropertyDetails(updated_property_details_response) ... result.rooms # number of rooms of the home The following attributes are currently supported:

  • zillow_id

  • home_type

  • home_detail_link

  • photo_gallery

  • latitude

  • latitude

  • coordinates

  • year_built

  • property_size

  • home_size

  • bathrooms

  • bedrooms

  • home_info

  • year_updated

  • floors

  • basement

  • roof

  • view

  • heating_sources

  • heating_system

  • rooms

  • neighborhood

  • school_district The following attributes are not provided by the API:

  • graph_data_link

  • map_this_home_link

  • tax_year

  • tax_value

  • last_sold_date

  • last_sold_price_currency

  • last_sold_price

Train.py => predicting house prices Using scikit-learn Library to train model off data

About

Scrape Zillow for housing price fluctuations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages