Giter Club home page Giter Club logo

musa-620-week-3's Introduction

MUSA620-Week-3

Web Scraping (notes)

Assignment

This is the first required assignment of the course. You may turn it in by email (galkamaxd at gmail) or in person at class.

Due: by the end of class next week, 8-Feb

Task: Calculate the price per square foot of condominiums on Rittenhouse Square (the orange buildings below) by scraping the Philadelphia Property Database.

Rittenhouse Square

Deliverable: The average price per square foot based on your calculations. Please also include all R scripts used in scraping and analyzing the data, as well as information about any other tools / applications used outside of R.

To calculate the average price per square foot for these homes, you will need to scrape the Philadelphia Property Database.

  • This list of condos (address and unit #) are in the rittenhouse-condos.csv file. See the assignment-week-3-template.R script for some code to get you started.
  • For the purposes of this assignment, please use the most recent Market Value as the price of the condo, as shown in the "VALUATION HISTORY" table. For the area of the condo, please use the field labeled "IMPROVEMENT AREA (SQFT)".
  • This assignment may require you to go beyond the examples we covered in class, though the nyc-real-estate-search.r script should include most of the pieces that you need. I also added some additional information about selectors into the lecture notes.
  • UPDATE: For this project you should use Selenium, rather than Rvest, to extract data from the page. There is a bug in some versions of Firefox that will give an error when you try to extract the HTML and hand it off to Rvest.

Setting up the Selenium Standalone Server (optional):

    1. Install Java JDK, following these intructions for Windows or these instructions for OS X. You can download the latest Java JDK version here.
    1. Download the latest version of the Selenium Standalone Server.
    1. If you do not already have it, install the latest version of Firefox (Firefox is the default browser for Selenium).
    1. To start the server, open the command line (in Windows press Win+R then type "cmd", in OS X search for "terminal" in Spotlight). Go to the directory where the Selenium Standalone Server file is downloaded and run "java -jar selenium-server-standalone-3.0.1.jar".

If you are having problems getting the Selenium Standalone Server working, you can find more information here. You are also welcome to email me with questions. However, this project is not meant to be an exercise in setting up servers, so if you are finding it overwhelming to set up the standalone server, you should just use Sauce Labs, as we did in class.

Office Hours: Office hours are on Monday, 1pm to 4pm. Email me at galkamaxd at gmail to set schedule a time to discuss the project. You are also welcome to email me with questions at any time.

musa-620-week-3's People

Contributors

galkamax avatar

Watchers

James Cloos 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.