Skip to content

About

Proof of concept dashboard that scrapes real estate listings in Mauritius and seek to identify undervalued properties for investment opportunities

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🇲🇺 Mauritius Prop-Invest

Mauritius Prop-Invest is an institutional-grade web scraping, comparative valuation, and investment analysis platform for the Mauritian real estate market.

The application crawls real-estate listings, parses property details, applies a coordinate-based geospatial mapping system, evaluates property prices using a custom Comparative Market Analysis (CMA) model, and projects acquisition costs and investment returns (Net Rental Yield and Cash-on-Cash ROI).


🚀 Key Features

  • Live Web Crawler: Automatically extracts property listings from lexpressproperty.com (sequential pagination parsing), cleaning HTML artifacts and auto-correcting French encoding issues (e.g., Péreybère, Moka, Ebène).
  • Comparative Market Analysis (CMA) Model: Evaluates listings mathematically against the $k$ most similar properties in the database (matching by property type, location, size, and bedroom count) to determine Fair Value and highlight Undervalued Deals.
  • Transaction Cost Calculator: Calculates a complete buyer statement of acquisition fees in Mauritius, including:
    • MRA Registration Duty (5%)
    • Agency Brokerage (2%) & VAT (15%)
    • Official statutory sliding-scale Notary Fees & VAT
    • Administrative registration stamps
  • ROI & Yield Simulator: Calculates gross and net rental yields, matching properties against localized rental yield statistics by region (North, West, Centre, East, South) and simulating cash outlay vs. Cash-on-Cash ROI.
  • Geospatial Visualization: Displays property listings on an interactive map of Mauritius, color-coded by investment potential:
    • 🟢 Undervalued (>= 15% discount vs. CMA Fair Value)
    • ⚪ Fair Value
    • 🔴 Overvalued
    • 🟡 Verify Details (Extreme outlier discount > 75%, requiring verification)

📂 Project Structure

The project has been cleaned up for production readiness and includes the following files:

Prop-Invest/
│
├── app.py                  # The main Streamlit web application & interactive dashboard.
├── scraper.py              # BeautifulSoup web crawler & HTML parser (stores data locally).
├── analytics.py            # Data cleaning, CMA valuation model, and ROI calculator engine.
├── properties_db.json      # Local JSON database containing scraped property listings (auto-bootstraps if missing).
├── requirements.txt        # Python package dependencies.
├── run_prop_invest.bat     # Windows batch script to launch the application with a single click.
└── .gitignore              # Standard git exclusion configurations.

⚙️ Installation & Setup

Prerequisites

Make sure you have Python 3.8+ installed on your system.

1. Clone the Repository

git clone https://github.com/YOUR_USERNAME/Prop-Invest.git
cd Prop-Invest

2. Install Dependencies

Install all required libraries using pip:

pip install -r requirements.txt

3. Run the Application

On Windows:

Simply double-click the run_prop_invest.bat file.

Via Command Line:

streamlit run app.py

📊 Application Tour

1. Market Overview & Insights

Provides high-level metrics (total listings, number of undervalued deals, average price per square meter) along with:

  • An interactive Price vs. Size scatter plot mapping the market valuation frontier.
  • Regional pricing bar charts.
  • Geospatial map visualization showing listing distribution and valuation codes.

2. Investment Deal Finder

A tabular deal matching interface. Filter properties by location, type, minimum discount percentage, and size, and export high-potential deals directly to a CSV spreadsheet.

3. Acquisition & ROI Calculator

Allows users to pick any undervalued listing to view:

  • A itemized transaction cost statement (MUR).
  • Dynamic rental return modeling, allowing you to override expected monthly rent and management expenses to calculate adjusted Net Yields.
  • A list of the 5 most comparable property listings used as the CMA valuation basis.

4. Database & Scraper Admin

Review the complete database in a raw tabular format, download the full dataset, or inspect crawling logs.


🛠️ Tech Stack

  • Frontend: Streamlit
  • Data Manipulation: Pandas, NumPy
  • Scraping: BeautifulSoup4, Requests
  • Visualizations: Plotly Express, Plotly Graph Objects

⚠️ Disclaimer

This project is for educational and research purposes only. The scraped data and generated models represent mathematical estimations and do not constitute formal financial, investment, or real estate valuation advice.

About

Proof of concept dashboard that scrapes real estate listings in Mauritius and seek to identify undervalued properties for investment opportunities

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages