An open API service indexing awesome lists of open source software.

https://github.com/habibslim/madridimmo

Webscraping of house prices in Madrid, using Python and BeautifulSoup
https://github.com/habibslim/madridimmo

Last synced: 2 months ago
JSON representation

Webscraping of house prices in Madrid, using Python and BeautifulSoup

Awesome Lists containing this project

README

        


MadridImmo



Webscraping of house prices in Madrid, using Python and BeautifulSoup



# Dependencies
Below are the dependencies needed to run the project:

- `pandas`
- `BeautifulSoup`
- `fake_headers`

# Usage
After installing dependencies, the script can be run with:

`python3 main.py [options]`

Positional arguments:

- `name`: website to scrape (`pisos`, `tucasa` or `habitaclia`).
- `type`: type of dwellings to target (`houses` or `flats`).

Example:

`python3 main.py pisos houses`

# Example dataset
The extracted data can be found in the file `/dataset/madrid_immo.csv` (~30.000 entries in total).