Skip to content

Python script to download recently sold properties from redfin.com's database as a csv file.

Notifications You must be signed in to change notification settings

micahsteinberg/redfin-recently-sold-property-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Redfin Recently Sold Property Scraper

Description

Python script to scrapes recently sold properties from redfin.com's database and save them to a csv file

Data fields in generated csv:

  • property_id
  • date_sold
  • price
  • square_footage
  • lot_size
  • number_bedrooms
  • number_bathrooms
  • year_built
  • latitude
  • longitude
  • property_type
  • street_number
  • street_name
  • neighborhood
  • city
  • state
  • zip_code
  • time_until_sold

Instructions

  • Start a virtual environment with the dependencies stored in environment.yml. Using conda:
conda env create -f environment.yml
source activate redfinscrape
  • Set global variables in main.py
    • OUT_FILENAME = desired output file name
    • TIME_RANGE = how many days in the past you want sold property information for
  • Run using python3:
python3 main.py

About

Python script to download recently sold properties from redfin.com's database as a csv file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages