Skip to main content

Python library for accessing trulia.com's REST API

Project description

# trulia

Python library for accessing Trulia’s REST API

## Installation

pip install trulia

## Usage

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”)

## Documentation

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

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

trulia-0.0.2.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

trulia-0.0.2.macosx-10.9-intel.tar.gz (2.9 kB view hashes)

Uploaded Source

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