Giter Site home page Giter Site logo

python-zillow's Introduction

Python-Zillow

A Python wrapper around the Zillow API.

By the Python-Zillow Developers

Introduction

This library provides a Python interface for the Zillow API. It works with Python versions from 2.6+.

Zillow provides a service that allows people to research the value of home across the United States. Zillow exposes this information via a web services API and this library is intended to make it easier for Python developers to use.

Installing

You can install python-zillow using:

    pip install python-zillow

Getting the code

The code is hosted at https://github.com/seme0021/python-zillow

Check out the latest development version anonymously with::

    $ git clone git://github.com/seme0021/python-zillow.git
    $ cd python-zillow

Setup a virtual environment and install dependencies:

	$ virtualenv env

Activate the virtual environment created:

	$ source env/bin/activate

Running Tests

Note that tests require pip install nose and optionally pip install coverage:

To run the unit tests:

	make test

to also run code coverage:

    make coverage

Basic Tutorial on Searching Zillow

Here is some basic python code to query the zillow api using the python-zillow library.

Note: I suggest keeping your key stored in a ./bin/config/zillow_key.conf file

Initialize the API

import zillow

with open("./bin/config/zillow_key.conf", 'r') as f:
    key = f.readline().replace("\n", "")

api = zillow.ValuationApi()

Find a place given an address

address = "3400 Pacific Ave., Marina Del Rey, CA"
postal_code = "90292"

data = api.GetSearchResults(key, address, postal_code)

Find place using a zillow place id

zpid="2100641621"
detail_data = api.GetZEstimate(key, zpid)

Find comparables

zpid="2100641621"
detail_data = api.GetComps(key, zpid)

Get Deep Search Results

address = "3400 Pacific Ave., Marina Del Rey, CA"
postal_code = "90292"

data = api.GetDeepSearchResults(key, address, postal_code)

Get Deep Comps

zws_id = "<your key>"
zpid = 2100641621
count=10

data = data = api.GetDeepComps(zws_id, zpid, count)

python-zillow's People

Contributors

jonafato avatar seme0021 avatar goutammohan avatar jacksonsingleton avatar vintlucky777 avatar

Stargazers

Goutam avatar

Watchers

James Cloos avatar Goutam 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.