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).
-
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)
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.
Make sure you have Python 3.8+ installed on your system.
git clone https://github.com/YOUR_USERNAME/Prop-Invest.git
cd Prop-InvestInstall all required libraries using pip:
pip install -r requirements.txtSimply double-click the run_prop_invest.bat file.
streamlit run app.pyProvides 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.
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.
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.
Review the complete database in a raw tabular format, download the full dataset, or inspect crawling logs.
- Frontend: Streamlit
- Data Manipulation: Pandas, NumPy
- Scraping: BeautifulSoup4, Requests
- Visualizations: Plotly Express, Plotly Graph Objects
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.