# muhammadahmadraza5088/urbi_sea_map_scraping architecture

> Architecture diagram of the GitHub repository muhammadahmadraza5088/urbi_sea_map_scraping, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/muhammadahmadraza5088/urbi_sea_map_scraping
- Repository: https://github.com/muhammadahmadraza5088/urbi_sea_map_scraping

## Overview

This small Python scraping utility searches Urbi for places matching an address, collects each result’s name, ID, and URL across pages, then writes the collected rows to output.csv. app.py processes addresses from address.csv; app2.py runs the same search flow for one hard-coded address. The scripts are shown as single runtime components because each implements the full workflow.

Main entry points: [`app.py`](https://github.com/muhammadahmadraza5088/urbi_sea_map_scraping/blob/master/app.py) (Batch scraper), [`app2.py`](https://github.com/muhammadahmadraza5088/urbi_sea_map_scraping/blob/master/app2.py) (Single-address scraper), [`address.csv`](https://github.com/muhammadahmadraza5088/urbi_sea_map_scraping/blob/master/address.csv) (Address input)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_batch_scraper["Batch scraper<br/>[app.py]"]
node_single_scraper["Single-address scraper<br/>[app2.py]"]
node_address_input["Address input<br/>[address.csv]"]
node_urbi["Urbi website"]
node_csv_output["CSV results"]

node_batch_scraper -->|"reads addresses"| node_address_input
node_batch_scraper -->|"searches and scrapes"| node_urbi
node_batch_scraper -->|"writes results"| node_csv_output
node_single_scraper -->|"searches and scrapes"| node_urbi
node_single_scraper -->|"writes results"| node_csv_output

click node_batch_scraper "https://github.com/muhammadahmadraza5088/urbi_sea_map_scraping/blob/master/app.py"
click node_single_scraper "https://github.com/muhammadahmadraza5088/urbi_sea_map_scraping/blob/master/app2.py"
click node_address_input "https://github.com/muhammadahmadraza5088/urbi_sea_map_scraping/blob/master/address.csv"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_batch_scraper,node_single_scraper,node_address_input toneTeal
class node_urbi,node_csv_output toneIndigo
```

## Components

### Other components

- [Batch scraper](https://github.com/muhammadahmadraza5088/urbi_sea_map_scraping/blob/master/app.py): `app.py`
- [Single-address scraper](https://github.com/muhammadahmadraza5088/urbi_sea_map_scraping/blob/master/app2.py): `app2.py`
- [Address input](https://github.com/muhammadahmadraza5088/urbi_sea_map_scraping/blob/master/address.csv): `address.csv`
- **Urbi website**
- **CSV results**

## Connections

- Batch scraper → Address input: reads addresses (evidence: `app.py`)
- Batch scraper → Urbi website: searches and scrapes (evidence: `app.py`)
- Batch scraper → CSV results: writes results (evidence: `app.py`)
- Single-address scraper → Urbi website: searches and scrapes (evidence: `app2.py`)
- Single-address scraper → CSV results: writes results (evidence: `app2.py`)
