Skip to main content

Get the estimated value of a property from Redfin and Zillow

Project description

real-estate-scrape

Get the estimated value of a property from Redfin and Zillow

Automated usage

Plot of Redfin and Zillow estimated value as a function of time

To make charts like this by getting the value of a property once a day and storing the result, see mikepqr/real-estate-scrape-eg.

Advanced/manual usage

Export REDFIN_URL and ZILLOW_URL. To optionally use scraperapi, also export SCRAPERAPI_KEY. Then to scrape and append to data.csv in the current working directory:

$ pip install real-estate-scrape
$ real-estate-scrape

Why

Redfin and Zillow both give you an estimate of the current market value of your home. That estimate is given to the nearest dollar (!) and comes with a chart that claims to be the history of that estimate. That historical chart is a lie. The estimate for today bounces around a lot, but they retcon the history to pretend it doesn't. The precision of today's estimate and the smoothness of the chart make the estimate look ridiculously trustworthy. This scraper captures the bouncing, which gives you a good idea how much to trust the current value (probably good to 10-20% at most).

Adding a new site

To add a new site:

  • add an entry in sites.json
  • set xpath to the xpath containing the piece of data you want to collect
  • export the <NAME>_URL environment variable, where <NAME> should be replaced with the upper case version of the "name" field in sites.json.
  • if you want to keep the history in data.csv manually edit its header to add the new site (otherwise data.csv will be overwritten with an empty table).

Caveats

  • The Zillow scraper doesn't work if the house is on the market. The page layout changes and I can't figure out the xpath. PRs welcome.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

real-estate-scrape-0.1.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

real_estate_scrape-0.1.0-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page