A Web application that maps the rent in a given city using HTML Scraping and Leaflet.
Technologies Used: Python 2.X (Requests, lxml), Web (HTML,JavaScript,CSS) and Leaflet JS
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.
Clone or download the DRentMap repository from GitHub and run the following scripts in Python 3:
getdata.py
. This fetches the current listings from the website and creates entries for each listing in the 'data' folderconvert2geojson.py
This script geocodes and converts the listing to a GeoJSON FeatureCollection file.index.html
in your browser. This file contains the complete Web applications needed to visualize the results in the data folder