# elmgharibasma/job_market_pipeline architecture

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

- Interactive diagram: https://gitdiagram.com/elmgharibasma/job_market_pipeline
- Repository: https://github.com/elmgharibasma/job_market_pipeline

## Overview

The product is a daily ELT pipeline for collecting Moroccan tech-job listings and presenting market trends. Airflow orchestrates scraping, JSON deduplication, and Snowflake loading; dbt models the warehouse data through bronze, silver, and gold, with Power BI as the reporting surface. The DAG and plugin excerpts establish the scraping, merge, and load calls. Downstream dbt and dashboard relationships are based on README documentation; their implementation details were not sampled.

Main entry points: [`dbt/models/silver/silver_jobs.sql`](https://github.com/elmgharibasma/job_market_pipeline/blob/master/dbt/models/silver/silver_jobs.sql) (Silver jobs model), [`dags/rekrute_pipeline_dag.py`](https://github.com/elmgharibasma/job_market_pipeline/blob/master/dags/rekrute_pipeline_dag.py) (Daily Airflow DAG), [`plugins/load_to_snowflake_bronze.py`](https://github.com/elmgharibasma/job_market_pipeline/blob/master/plugins/load_to_snowflake_bronze.py) (Bronze loader), [`plugins/merge_json.py`](https://github.com/elmgharibasma/job_market_pipeline/blob/master/plugins/merge_json.py) (JSON deduplication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_collection["Collection and orchestration"]
  node_airflow["Daily Airflow DAG"]
  node_scraper["Job scraper<br/>[test_rekrute.py]"]
  node_merger["JSON deduplication<br/>[merge_json.py]"]
  node_merged_json["Merged JSON file"]
end

subgraph group_warehouse["Warehouse loading"]
  node_loader["Bronze loader"]
  node_snowflake[("Snowflake warehouse")]
end

subgraph group_modeling["dbt modeling"]
  node_bronze["Bronze jobs model<br/>[bronze_jobs.sql]"]
  node_silver["Silver jobs model<br/>[silver_jobs.sql]"]
  node_city_map["City mapping seed<br/>[villes_mapping.csv]"]
  node_gold_jobs["Gold jobs model<br/>[gold_jobs.sql]"]
  node_gold_skills["Gold skills model"]
end

subgraph group_analytics["Market analytics"]
  node_powerbi["Power BI dashboard"]
end

node_rekrute(("Rekrute listings"))

node_rekrute -->|"provides listings"| node_scraper
node_airflow -->|"calls scraper"| node_scraper
node_airflow -->|"calls merge"| node_merger
node_merger -->|"writes merged"| node_merged_json
node_airflow -->|"calls loader"| node_loader
node_loader -->|"reads JSON"| node_merged_json
node_loader -->|"inserts bronze"| node_snowflake
node_snowflake -->|"supplies raw data"| node_bronze
node_bronze -->|"cleans data"| node_silver
node_city_map -.->|"maps cities"| node_silver
node_silver -->|"feeds analytics"| node_gold_jobs
node_silver -->|"feeds skills"| node_gold_skills
node_gold_jobs -->|"provides KPIs"| node_powerbi
node_gold_skills -->|"provides skills"| node_powerbi

click node_airflow "https://github.com/elmgharibasma/job_market_pipeline/blob/master/dags/rekrute_pipeline_dag.py"
click node_scraper "https://github.com/elmgharibasma/job_market_pipeline/blob/master/plugins/test_rekrute.py"
click node_merger "https://github.com/elmgharibasma/job_market_pipeline/blob/master/plugins/merge_json.py"
click node_loader "https://github.com/elmgharibasma/job_market_pipeline/blob/master/plugins/load_to_snowflake_bronze.py"
click node_bronze "https://github.com/elmgharibasma/job_market_pipeline/blob/master/dbt/models/bronze/bronze_jobs.sql"
click node_silver "https://github.com/elmgharibasma/job_market_pipeline/blob/master/dbt/models/silver/silver_jobs.sql"
click node_city_map "https://github.com/elmgharibasma/job_market_pipeline/blob/master/dbt/seeds/villes_mapping.csv"
click node_gold_jobs "https://github.com/elmgharibasma/job_market_pipeline/blob/master/dbt/models/gold/gold_jobs.sql"
click node_gold_skills "https://github.com/elmgharibasma/job_market_pipeline/blob/master/dbt/models/gold/gold_competences.sql"
click node_powerbi "https://github.com/elmgharibasma/job_market_pipeline/blob/master/docs/powerbi/dashboard_emploi_maroc.pbix"

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_airflow,node_scraper,node_merger,node_merged_json toneBlue
class node_loader,node_snowflake toneAmber
class node_bronze,node_silver,node_city_map,node_gold_jobs,node_gold_skills toneMint
class node_powerbi toneRose
class node_rekrute toneIndigo
```

## Components

### Collection and orchestration

- [Daily Airflow DAG](https://github.com/elmgharibasma/job_market_pipeline/blob/master/dags/rekrute_pipeline_dag.py): `dags/rekrute_pipeline_dag.py`
- [Job scraper](https://github.com/elmgharibasma/job_market_pipeline/blob/master/plugins/test_rekrute.py): `plugins/test_rekrute.py`
- [JSON deduplication](https://github.com/elmgharibasma/job_market_pipeline/blob/master/plugins/merge_json.py): `plugins/merge_json.py`
- **Merged JSON file**

### Warehouse loading

- [Bronze loader](https://github.com/elmgharibasma/job_market_pipeline/blob/master/plugins/load_to_snowflake_bronze.py): `plugins/load_to_snowflake_bronze.py`
- **Snowflake warehouse**

### dbt modeling

- [Bronze jobs model](https://github.com/elmgharibasma/job_market_pipeline/blob/master/dbt/models/bronze/bronze_jobs.sql): `dbt/models/bronze/bronze_jobs.sql`
- [Silver jobs model](https://github.com/elmgharibasma/job_market_pipeline/blob/master/dbt/models/silver/silver_jobs.sql): `dbt/models/silver/silver_jobs.sql`
- [City mapping seed](https://github.com/elmgharibasma/job_market_pipeline/blob/master/dbt/seeds/villes_mapping.csv): `dbt/seeds/villes_mapping.csv`
- [Gold jobs model](https://github.com/elmgharibasma/job_market_pipeline/blob/master/dbt/models/gold/gold_jobs.sql): `dbt/models/gold/gold_jobs.sql`
- [Gold skills model](https://github.com/elmgharibasma/job_market_pipeline/blob/master/dbt/models/gold/gold_competences.sql): `dbt/models/gold/gold_competences.sql`

### Market analytics

- [Power BI dashboard](https://github.com/elmgharibasma/job_market_pipeline/blob/master/docs/powerbi/dashboard_emploi_maroc.pbix): `docs/powerbi/dashboard_emploi_maroc.pbix`

### Other components

- **Rekrute listings**

## Connections

- Rekrute listings → Job scraper: provides listings (evidence: `README.md`)
- Daily Airflow DAG → Job scraper: calls scraper (evidence: `dags/rekrute_pipeline_dag.py`)
- Daily Airflow DAG → JSON deduplication: calls merge (evidence: `dags/rekrute_pipeline_dag.py`)
- JSON deduplication → Merged JSON file: writes merged (evidence: `plugins/merge_json.py`)
- Daily Airflow DAG → Bronze loader: calls loader (evidence: `dags/rekrute_pipeline_dag.py`)
- Bronze loader → Merged JSON file: reads JSON (evidence: `plugins/load_to_snowflake_bronze.py`)
- Bronze loader → Snowflake warehouse: inserts bronze (evidence: `plugins/load_to_snowflake_bronze.py`)
- Snowflake warehouse → Bronze jobs model: supplies raw data (evidence: `README.md`)
- Bronze jobs model → Silver jobs model: cleans data (evidence: `README.md`)
- City mapping seed → Silver jobs model: maps cities
- Silver jobs model → Gold jobs model: feeds analytics (evidence: `README.md`)
- Silver jobs model → Gold skills model: feeds skills (evidence: `README.md`)
- Gold jobs model → Power BI dashboard: provides KPIs (evidence: `README.md`)
- Gold skills model → Power BI dashboard: provides skills (evidence: `README.md`)
