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
- Installation
- Usage
- Supported States
- Configuration
- Data Output
- Logging
- Contributing
- License
- Contact
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:
-
Clone the Repository:
git clone https://github.com/yourusername/zillow_scraper.git cd zillow_scraper
-
Install the Package:
pip install zillow_scraper
-
Install Dependencies: If you don't have the required libraries, you can install them using:
pip install -r requirements.txt
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for zillow_scraper-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 968c858bb40591007f45b245ee15d4c56ab6f447f0c002749ea36e7c40093390 |
|
MD5 | 4176ba686b84230ae269501a8be38ece |
|
BLAKE2b-256 | a3cbab56b705a69f449f1c841193aa693ef8c3472ba82f0f3786d3478c3c3802 |