We are analyzing the effect of restaurants and eateries on Airbnb listings in New York City. We have chosen New York City as it is one of the largest and most popular tourist destinations in the world with a large amount of Airbnb listings.
We are looking to answer the following questions using the data:
- Is there a correlation between the number of restaurants in a particular area and the number of Airbnb listings in that area?
- How does the price of Airbnb listings vary according to the presence of restaurants in that region?
The data we are using comes from the Airbnb website and the restaurant data is pulled from the NYC restaurant database published by Miles Grimshaw.
- Clone the git repository to a local location on your machine by downloading the zip file or typing the following in a terminal:
git clone https://github.com/karangale/uwseds-group-team-star.git
- Open the main 'uwseds-group-team-star folder' and run the setup by typing the following:
python setup.py install
-
Download the Airbnb 'listings.csv.gz' file: listings.csv.gz
-
Extract the 'listings.csv' file and save it to the data folder in the following location:
uwseds-group-team-star/airbnb_price_prediction/Data
- Open Command Prompt or Terminal as Administrator and navigate to the airbnb_price_prediction folder in the repository.
uwseds-group-team-star/airbnb_price_prediction
- Execute the following commands one by one in the airbnb_price_prediction folder
python create_frontpage.py
If you have Windows (Command Prompt):
set FLASK_APP=create_frontpage.py
python -m flask run
If you have Linux/Mac (Terminal):
export FLASK_APP=create_frontpage.py
python -m flask run
- Run the visualization by typing the following url into your preferred web browser:
http://127.0.0.1:5000
- Click on the links on the web page to open that particular module.
- This module allows you to get the predicted price of an Airbnb listing depending on the input parameters.
- Type in the specified parameters.
- Click on 'Submit' button to view the predicted listing price.
- This module allows you to view the Airbnb listings on an interactive map.
- You can choose to zoom in on various clusters of airbnb and restaurant listings by clicking on them.
- Airbnb listings have blue markers with a house icon, while restaurants have red markers with a fork and knife icon.
- If you want to only view airbnb listings or restaurants, you can click on the layers on the top right corner of the map to filter them.
- Click on a particular listing to view more details and find a link to book that particular listing.