GithubHelp home page GithubHelp logo

nstevens1040 / get-apartmentlistings Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 11.3 MB

Aggregates search results from apartmentfinder.com, apartmentsearch.com, forrent.com, hotpads.com, mynewplace.com, padmapper.com, rentcafe.com, trulia.com, walkscore.com, zillow.com, and zumper.com.

PowerShell 100.00%
walkscore trulia zillow mynewplace padmapper rentcafe zumper apartmentfinder apartmentsearch forrent

get-apartmentlistings's Introduction

Get-ApartmentListings

Aggregates search results from:

  • apartmentfinder.com
  • apartmentsearch.com
  • forrent.com
  • hotpads.com
  • mynewplace.com
  • padmapper.com
  • rentcafe.com
  • trulia.com
  • walkscore.com
  • zillow.com
  • and zumper.com

This script uses excel2table to create the final table of results.

Usage

This script will only work using Windows PowerShell and will not work with PowerShell Core.
I've tested and confirmed that the script runs without error using Windows PowerShell 5.1.14393.4467.

Fair warning: the script may take over one hour to complete, depending on the city you're conducting your search in (Chicago, IL took 1 hour, 42 minutes, & 52 seconds and produced 7094 results). The purpose of this script is not to quickly gather apartment listing results, but to gather apartment listings and their granular details. That being said, the script will use 4 threads only because my CPU has four cores. Additionally, my machine has 12GB RAM so it's hard to say how well it will perform with any amount of RAM less than 12GB as I have seen the script's memory usage jump over 2GB in some cases.

You may also see a bunch of warnings like these:

My experience is, although they are annoying, they aren't pointing to anything erroneous, harmful, or compromising.
I just close them all.

Before you begin, you will need these environment variables set up:

  1. Launch Windows PowerShell
  2. Clone this repo and change directory to the repo's root folder.
git clone https://github.com/nstevens1040/Get-ApartmentListings.git
cd .\Get-ApartmentListings\
  1. Run the script (example below).
. .\Get-ApartmentListings.ps1 -City Chicago -State_Code IL -Keep_csv_file -Commute_To '1060 W Addison St, Chicago, IL 60613'

I'll write more about the parameters if necessary, but for now I'll rely on the idea that they are, more or less, self explanatory.

  • City - The city you're conducting your search in.
  • State_Code - The state where you're conducting your search formatted as a two-character state code (ex. Illinois is IL, California is CA, New York is NY, etc.)
  • Keep_csv_file - The database that is generated from the results gets converted to a datatable and exported as a CSV file so that it can be used as input for excel2table.exe to create a nice HTML table. This switch tells the script not to delete the CSV file, because otherwise it will.
  • Commute_To - Optional parameter to include a string address to where you expect to be commuting regularly so that a commute time column will be included in the results as a sortable member.
  1. View your results. The final table of results will be an HTML file located at %USERPROFILE%\Desktop\AllListings.html or C:\Users\%USERNAME%\Desktop\AllListings.html. The filename may vary if you've run the script more than once without deleting the results from the last time you ran the script.

get-apartmentlistings's People

Contributors

nstevens1040 avatar

Stargazers

 avatar

Watchers

 avatar

get-apartmentlistings's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.