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/Adeyemi0/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 |
Metadata
Release files for zillow-scraper 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| zillow_scraper-0.1.1.tar.gz | 5.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zillow_scraper-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.0 kB
Release files / zillow_scraper-0.1.1.tar.gz
| Download URL | zillow_scraper-0.1.1.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
110c4daed59e66b54c3fe0ca7fbb164decd5b097a67d371e6d8fca50ef5e9004
|
|
BLAKE2b-256 checksum How to use checksums |
1e7c063645e3496fbedacb25711a566c7e259f8cb1a991fd2f5656ea59b5af30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.18
|
Release files / zillow_scraper-0.1.1-py3-none-any.whl
| Download URL | zillow_scraper-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8d2a5557a03f01da92102138fc22267f0b206b4c7dd5a653285f4ded3ce921f
|
|
BLAKE2b-256 checksum How to use checksums |
a76f38c00ebed369f1b043eb3a40e340f1aa696f0a9619fc370b1097e9f03f52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.18
|