Git Product home page Git Product logo

trulia's Introduction

trulia

Python library for accessing Trulia's REST API

Installation

pip install trulia

Usage

import trulia.stats
import trulia.location

TRULIA_KEY = "RELACE_WITH_YOUR_API_KEY"

# Get all cities in California
cities = trulia.location.LocationInfo(TRULIA_KEY).get_cities_in_state("CA")

# Get all counties in California
counties = trulia.location.LocationInfo(TRULIA_KEY).get_counties_in_state("CA")

# Get all neighborhoods in Los Angeles
neighborhoods = trulia.location.LocationInfo(TRULIA_KEY).get_neighborhoods_in_city("Los Angeles", "CA")

# Get all states in the United States
states = trulia.location.LocationInfo(TRULIA_KEY).get_states()

# Get all zip codes in California
zip_codes = trulia.location.LocationInfo(TRULIA_KEY).get_zip_codes_in_state("CA")

# Get all traffic and listing stats for the city of Los Angeles in January 2014
city_stats = trulia.stats.TruliaStats(TRULIA_KEY).get_city_stats(city="Los Angeles", state="CA", start_date="2014-01-01", end_date="2014-01-31")

# Get all traffic and listing stats for Santa Clara county in January 2014
county_stats = trulia.stats.TruliaStats(TRULIA_KEY).get_county_stats(city="Santa Clara", state="CA", start_date="2014-01-01", end_date="2014-01-31")

# Get all traffic and listing stats for Venice, CA neighborhood in January 2014
neighborhood_stats = trulia.stats.TruliaStats(TRULIA_KEY).get_neighborhood_stats(neighborhood_id=7183, start_date="2014-01-01", end_date="2014-01-31")

# Get all traffic and listing stats for California in January 2014
state_stats = trulia.stats.TruliaStats(TRULIA_KEY).get_state_stats(state="CA", start_date="2014-01-01", end_date="2014-01-31")

# Get all traffic and listing stats for the 90025 zip code in January 2014
zip_code_stats = trulia.stats.TruliaStats(TRULIA_KEY).get_zip_code_stats(zip_code="90025", start_date="2014-01-01", end_date="2014-01-31")

Documentation

Trulia's API documentation can be found here: http://developer.trulia.com/docs

trulia's People

Watchers

 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.