The objective of this project is collect rents housing information in my city, and returns a list of the five best rent choices according to a list of defined characteristics.
In this project i make a web scraping to the rents housing information of my city from MercadoLibre. Later clean data and prepare for evaluate the model Ideal house rent.
-
Create virtual environment, in the root of project
python -m venv venv
-
Activate virtual environment
# Windows .\venv\Scripts\activate #Linux source venv/bin/activate
-
Install requirements.txt
pip install -r requirements.txt
-
If you want make scraping to other ubication modify the line 42 of scraper HOME_URL variable:
-
Run main.py
python main.py
-
Run app.py
python app.py
-
This script run in localhost,
http://localhost:8080/ideal_house
Receive the data through the browser.
-
Example:
http://localhost:8080/ideal_house?surface=1&bathrooms=2&bedrooms=1&parking=2&price=2
-
For scrap data, include
&scrap=true