Skip to main content

A web scraper for Zillow real estate listings.

Project description

Zillow Scraper

This Python module can be used for getting property listings from Zillow. This allows users to extract detailed information about properties available for sale or rent, as well as sold properties, across various states in the USA.

Table of Contents

Features

  • Scrape property listings from Zillow for multiple states.
  • Retrieve detailed property information including:
    • Address
    • Price
    • Days on Zillow
    • Zestimate and Rent Zestimate
    • Property type (e.g., single-family home, condo)
    • Geographic coordinates (latitude and longitude)
  • Support for paginated results, allowing users to scrape multiple pages of listings.

Installation

To install the Zillow Scraper module, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/Adeyemi0/zillow_scraper.git
    cd zillow_scraper
    
  2. Install the Package:

    pip install zillow_scraper
    
  3. Install Dependencies: If you don't have the required libraries, you can install them using:

    pip install -r requirements.txt
    
  4. Usage To use the Zillow Scraper, you can import the scrape_selected_states function from the module and call it with the desired parameters.

## Example:

from zillow_scraper.scraper import scrape_selected_states

# Define the states and listing type you want to scrape
selected_states = {
    "California": "ca",
    "Texas": "tx"
}

# Scrape for sale listings
df = scrape_selected_states(selected_states, "for_sale")

# Display the scraped data
print(df.head())

Listing Types:

  • for_sale: For properties currently on the market.
  • for_rent: For rental listings.
  • sold: For properties that have been sold.

Supported States

The scraper supports all 50 states in the USA. Below is a list of the states and their corresponding abbreviations:

| State              | Abbreviation |
|--------------------|--------------|
| Alabama            | al           |
| Alaska             | ak           |
| Arizona            | az           |
| Arkansas           | ar           |
| California         | ca           |
| Colorado           | co           |
| Connecticut        | ct           |
| Delaware           | de           |
| Florida            | fl           |
| Georgia            | ga           |
| Hawaii             | hi           |
| Idaho              | id           |
| Illinois           | il           |
| Indiana            | in           |
| Iowa               | ia           |
| Kansas             | ks           |
| Kentucky           | ky           |
| Louisiana          | la           |
| Maine              | me           |
| Maryland           | md           |
| Massachusetts      | ma           |
| Michigan           | mi           |
| Minnesota          | mn           |
| Mississippi        | ms           |
| Missouri           | mo           |
| Montana            | mt           |
| Nebraska           | ne           |
| Nevada             | nv           |
| New Hampshire      | nh           |
| New Jersey         | nj           |
| New Mexico         | nm           |
| New York           | ny           |
| North Carolina     | nc           |
| North Dakota       | nd           |
| Ohio               | oh           |
| Oklahoma           | ok           |
| Oregon             | or           |
| Pennsylvania       | pa           |
| Rhode Island       | ri           |
| South Carolina     | sc           |
| South Dakota       | sd           |
| Tennessee          | tn           |
| Texas              | tx           |
| Utah               | ut           |
| Vermont            | vt           |
| Virginia           | va           |
| Washington         | wa           |
| West Virginia      | wv           |
| Wisconsin          | wi           |
| Wyoming            | wy           |

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

zillow_scraper-0.1.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zillow_scraper-0.1.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file zillow_scraper-0.1.1.tar.gz.

File metadata

  • Download URL: zillow_scraper-0.1.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.18

File hashes

Hashes for zillow_scraper-0.1.1.tar.gz
Algorithm Hash digest
SHA256 110c4daed59e66b54c3fe0ca7fbb164decd5b097a67d371e6d8fca50ef5e9004
MD5 0f4f245de22d8ce33bc83e6ac662b50a
BLAKE2b-256 1e7c063645e3496fbedacb25711a566c7e259f8cb1a991fd2f5656ea59b5af30

See more details on using hashes here.

File details

Details for the file zillow_scraper-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: zillow_scraper-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.18

File hashes

Hashes for zillow_scraper-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c8d2a5557a03f01da92102138fc22267f0b206b4c7dd5a653285f4ded3ce921f
MD5 9f55ba366fa1bc608e422ce217d7bc3c
BLAKE2b-256 a76f38c00ebed369f1b043eb3a40e340f1aa696f0a9619fc370b1097e9f03f52

See more details on using hashes here.

Supported by

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