Code Monkey home page Code Monkey logo

zillow_scraper's Introduction

Zillow Scraper

This repo allows the user to scrape Zillow for properties in Chicago meeting certain criteria*. It's divided into two parts: a scraper and a processing pipeline.

The scraper pulls all properties added to Zillow within the last week that meet the criteria and stores them as a JSON file in raw_data/, named by date. For example, data pulled on Jan 13, 2021 would be stored in raw_data/20210113.json. The scraper is invoked as follows:

python -m zillow-scraper.scrape [max-pages]

The max-pages argument is optional, and indicates how many search pages to search through before stopping. If omitted, the scraper will exhaust all pages. (Providing max-pages is mainly useful for testing.)

The pipeline just does some basic cleaning on the scraped data. It is invoked with

python -m zillow_scraper.process <date>

where <date> is replaced with the date of the file to be processed (e.g 20210402).

* The city and criteria could be modified but are not parameterized.

Installing

I did this using a virtual environment, but that was a pain -- geopandas has complicated dependencies. I would recommend creating a conda environment using:

conda create -n zillow-scraper python=3.9 pandas matplotlib geopy geopandas beautifulsoup requests

I haven't done this, but I think it should handle the hard parts of the dependencies.

If you wish to use a virtual environment, before installing from the requirements file (pip install -r requirements.txt) I think you'll need to install GDAL first, which I was able to do on a Mac with brew install GDAL.

zillow_scraper's People

Contributors

eswan18 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.