From b502ce3e581c2321459782c305c2e4c809570402 Mon Sep 17 00:00:00 2001 From: Eljakim Herrewijnen Date: Wed, 27 Dec 2023 23:18:06 +0100 Subject: [PATCH] Update --- scrape/Readme.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/scrape/Readme.md b/scrape/Readme.md index 0ee91bd2..bb9ef9b3 100644 --- a/scrape/Readme.md +++ b/scrape/Readme.md @@ -1,12 +1,24 @@ # Scrape Usse Funda scraper that automatically calculates the distance to several points in the Netherlands. Project relies heavily on a slightly modified version of the funda-scraper that is available on github. +## Install +Create a virtual env and install the dependencies + +```bash +python3 -m venv venv/ +source venv/bin/activate +pip3 install -r requirements.txt +``` + +Also lxml is required for beautifullsoup to run: +```bash +sudo apt-get install python3-lxml +``` + ## Usage Update the ``URL`` parameter to use your filtered url from Funda. ```python URL = "https://www.funda.nl/zoeken/koop?selected_area=%5B%22utrecht,15km%22%5D&price=%22-400000%22&object_type=%5B%22house%22%5D" ``` -Next you should be able to scrape the data from funda. See the RTD for more docs on how to setup OSRM and use the results. - - +Next you should be able to scrape the data from funda. See the RTD for more docs on how to setup OSRM and use the results. \ No newline at end of file