Coder Social home page Coder Social logo

apts's Introduction

Web scraper to get apartment data from apartments.com.

To use:

  1. Make sure all requirements are installed
    • If not, run pip install -r requirements.txt
  2. run python scraper.py on command line. This is written in python 3 so check your version.
  3. You will be prompted for a unique search ID. This is the ID associated with the specific map or search region you're looking at. Examples may include:
    • ?sk=115ada7c860d92c4bc132f69f6ac8e45&bb=33imuxg3vHz4y4lC
    • new-york-ny
  4. If the extension used is a unique search region or polygon search, like the former, input 1 when prompted. Otherwise input 0.
  5. Output is put into a csv file with user input file name in the directory in which you're running the script. Leave out the extension when entering the file name (test rather than test.csv)
  6. If there are any errors they will be printed at the end of the script.

CSV fields

Field Notes
address full street address of the property
unit unit number - will be N/A if not found, often properties list it as 1 bed/1 bath rather than actual number
beds number of bedrooms
baths number of bathrooms
rent monthly rent - if there is a range given the average of the range is taken
sqft square footage of the apartment
avail availability. 0 if unavailable, 1 if available, 2 if will be available at a future date
pets pet policies. given as a semicolon separated list
parking parking available at property
built year in which building was built
renovated year building renovated if applicable
num_units number of units in the building
stories number of floors in the building
fitness fitness facilities available
outdoor outdoor space available

To Do:

  • Send requests through rotating proxy
  • Integrate into server as backend for web app

apts's People

Contributors

gurion avatar

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.