Published November 16, 2022 | Version v1

Habitaclia. Quina població desitges cercar?

Description

Generate a .csv document with a list of properties taken from the Habitaclia web portal.

To run the script, the installation of the following libraries is necessary:

pip install requests pip install re pip install beautifulSoup4 pip install csv pip install pandas

The script call should be made as follows:

python main.py

Afterwards, it asks for the population you want to search. This town should be written without accents (e.g. Castellar del valles, Barcelona, Caldes de Montbui).

Finally generate a .csv file with a set of columns:

Type: Type of property (House, Flat, Chalet...) Size: Square meters of the property Baths: Number of bathrooms in the property Rooms: Number of rooms in the property Price: Price of the property

Files

castellar_del_Valles_20221116.csv

Files (23.5 kB)

Name Size Download all
md5:aeaf31ac8bf301d398ae732b1d691f2c
23.5 kB Preview Download