A Streamlit-based application for searching UK properties and analysing their sustainability and price trends using the Scansan API.
This hackathon project provides an interactive interface to search properties across the UK, view detailed information including sustainability scores, price history forecasts, and market comparisons.
Live Demo: Run streamlit run app.py to start the application.
- Scansan API - Third-party property data and valuations service
- Streamlit - Web UI framework
- Plotly - Interactive charting library
User Input (Search)
↓
app.py (validate & route)
↓
main.py (process search)
↓
scansan_client.py (fetch data)
↓
Scansan API (external)
↓
Parse Results → Mock Fallback (if needed)
↓
Display (Grid View or Details View)
| File | Purpose |
|---|---|
app.py |
Main Streamlit interface & view orchestration |
main.py |
Core search logic, sorting, validation, mock data |
scansan_client.py |
API client for Scansan service |
config.py |
Central configuration (API keys, URLs, areas) |
household_integration.py |
Wrapper for household_info_page integration |
household_info_page.py |
Visualisation components (charts, gauges) |
model.py |
ML catboost model |
translator.py |
Sanitises the dataset to optimise the model's learning speeds |
- Python 3.10+
- pip package manager
Windows (PowerShell):
py -m venv .venv .\.venv\Scripts\Activate.ps1 py -m pip install --upgrade pip py -m pip install -r requirements.txt py -m streamlit run app.py
macOS/Linux (bash/zsh):
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
python3 -m streamlit run app.pyThe app will open at http://localhost:8501
-
Search for Properties:
- Select a UK area from the dropdown
- Enter a search query or use postcode + street search
- Click "Search"
-
View Results:
- Properties displayed in 3-column grid
- Sort by price (current/future), or default order
- Click "View Details" on any property
-
Property Details:
- Current, last sold, and predicted future prices
- Sustainability score with gauge visualisation
- Price history and forecast trends
- Save to favorites (placeholder)
Test all areas in config.py against the Scansan API:
python validate_uk_areas.py
Outputs: validation_results.json with valid/invalid/error categorisation.
- Multi-area property search
- Advanced search (postcode district + street)
- Sort by price
- Property cards with current/future pricing
- Detailed property view
- Sustainability score visualisation
- Mock data fallback for API failures
- Heatmap visualisation
- Market comparison analytics
- Price alert notifications
- This repository is private until the hackathon is over
- Mock database fallback available for development/testing
| Role | Responsible | Key Areas |
|---|---|---|
| Frontend Developer | James & Nirmal | Streamlit UI, user interactions, visualisation components |
| Backend Developer | William | API integration, business logic, data processing, config management |
| ML/Data Engineer | Ed | Price prediction model, sustainability scoring, data analysis |
UCL ML Hackathon 2026
