Skip to content

An easy command line tool to scrape and analyze rental prices

Notifications You must be signed in to change notification settings

csunsong/craigslist-apt-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Provides an easy Scrapy-based tool to search, collect, and analyze apartment rental prices in regional markets. Output goes directly to CSV and Plotly.

Requirements:

Usage:

$ cd craigslist-apt-analyzer

Pass in a regional craigslist apartment listing URL as an argument:

$ scrapy crawl cl_apt -a regional_url=http://sfbay.craigslist.org/search/sby/apa

Specify apartment size with 'br' argument (defaults to 1):

$ scrapy crawl cl_apt -a regional_url=http://sfbay.craigslist.org/search/sby/apa -a br=2 

Specify the analysis metric with 'metric' argument (Accepts either mean or median; defaults to median):

$ scrapy crawl cl_apt -a regional_url=http://sfbay.craigslist.org/search/sby/apa -a br=2 -a metric=mean

Specify the page depth to search with 'search_depth' aregument (default: 25, max: 25, min: 2):

$ scrapy crawl cl_apt -a regional_url=http://sfbay.craigslist.org/search/sby/apa -a br=2 -a search_depth=20

Raw and analyzed Apartment data will write to separate CSV files. Plotly bar chart data opens in new window.

Example Output: alt text

About

An easy command line tool to scrape and analyze rental prices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages