DRentMap.

A Web application that maps the rent in a given city using HTML Scraping and Leaflet.

Screenshot

Technologies Used: Python 2.X (Requests, lxml), Web (HTML,JavaScript,CSS) and Leaflet JS

Description

This is an integrated Python-HTML-scraping and Web mapping application, that allows to scrape WG-Gesucht, a German apartment listing Website and map current and past offers automatically on a Leaflet map. For this example, the city of Münster, Germany was chosen as the example. Despite this setting, this is meant to serve as a a template application, that can be adapted to other listing websites and/or locations.

Features
  • Display a map of Münster, Germany
  • Fetch addresses and rent data from WG-Gesucht
  • Map the result with density of listings and average price per district (Stadtteil)
Installation

Clone or download the DRentMap repository from GitHub and run the following scripts in Python 3:

  1. Run getdata.py. This fetches the current listings from the website and creates entries for each listing in the 'data' folder
  2. Run convert2geojson.py This script geocodes and converts the listing to a GeoJSON FeatureCollection file.
  3. Open index.html in your browser. This file contains the complete Web applications needed to visualize the results in the data folder
Back to my projects →