# b5119/python-web-scraping-projects architecture

> Architecture diagram of the GitHub repository b5119/python-web-scraping-projects, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/b5119/python-web-scraping-projects
- Repository: https://github.com/b5119/python-web-scraping-projects

## Overview

This repository is a set of five standalone Python data-collection and analysis tools, each run from its own command-line script. The workflows collect news, product prices, job listings, weather, or GitHub repository data, then provide project-specific filtering, history, reporting, or export. The graph separates those product domains and shows their documented external sources and results. Source excerpts support several implementation details; README-only capabilities are marked through README evidence, and unsampled implementation links are omitted where their call paths cannot be verified.

Main entry points: [`05-github-analyzer/analyzer.py`](https://github.com/b5119/python-web-scraping-projects/blob/main/05-github-analyzer/analyzer.py) (Repository analysis), [`04-weather-collector/collector.py`](https://github.com/b5119/python-web-scraping-projects/blob/main/04-weather-collector/collector.py) (Weather workflow), [`02-price-tracker/tracker.py`](https://github.com/b5119/python-web-scraping-projects/blob/main/02-price-tracker/tracker.py) (Price workflow), [`03-job-aggregator/aggregator.py`](https://github.com/b5119/python-web-scraping-projects/blob/main/03-job-aggregator/aggregator.py) (Job workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_news["News Scraper"]
  node_news_app["News workflow<br/>[scraper.py]"]
  node_news_sources["News sites"]
  node_news_export["CSV / JSON export<br/>[scraper.py]"]
end

subgraph group_prices["Price Tracker"]
  node_price_app["Price workflow<br/>[tracker.py]"]
  node_shops["Product sites"]
  node_price_history[("Price history<br/>[tracker.py]")]
  node_price_alerts["Drop alerts<br/>[tracker.py]"]
  node_price_charts["History charts<br/>[tracker.py]"]
end

subgraph group_jobs["Job Aggregator"]
  node_job_app["Job workflow<br/>[aggregator.py]"]
  node_job_boards["Job board APIs"]
  node_job_filters["Filter &amp; dedupe<br/>[aggregator.py]"]
  node_job_export["CSV / JSON export<br/>[aggregator.py]"]
end

subgraph group_weather["Weather Collector"]
  node_weather_app["Weather workflow<br/>[collector.py]"]
  node_weather_api["OpenWeatherMap"]
  node_weather_history[("Weather history<br/>[collector.py]")]
  node_weather_reports["Forecast &amp; reports<br/>[collector.py]"]
end

subgraph group_github["GitHub Analyzer"]
  node_github_app["Repository analysis<br/>[analyzer.py]"]
  node_github_api["GitHub API"]
  node_github_stats["Repository statistics<br/>[analyzer.py]"]
  node_github_insights["Contributors &amp; trends<br/>[analyzer.py]"]
  node_github_export["JSON analysis<br/>[analyzer.py]"]
end

node_user(("User"))

node_user -->|"runs"| node_news_app
node_news_app -->|"scrapes"| node_news_sources
node_news_app -->|"exports"| node_news_export
node_user -->|"runs"| node_price_app
node_price_app -->|"requests prices"| node_shops
node_price_app -->|"loads / saves"| node_price_history
node_price_app -->|"checks drops"| node_price_alerts
node_price_app -.->|"visualizes history"| node_price_charts
node_user -->|"runs"| node_job_app
node_job_app -->|"fetches listings"| node_job_boards
node_job_app -->|"filters / dedupes"| node_job_filters
node_job_app -->|"exports"| node_job_export
node_user -->|"runs"| node_weather_app
node_weather_app -->|"requests conditions"| node_weather_api
node_weather_app -->|"requests forecast"| node_weather_api
node_weather_app -->|"saves history"| node_weather_history
node_weather_app -->|"displays / compares"| node_weather_reports
node_weather_app -.->|"charts data"| node_weather_reports
node_user -->|"runs"| node_github_app
node_github_app -->|"requests data"| node_github_api
node_github_app -->|"checks rate limit"| node_github_api
node_github_app -->|"collects statistics"| node_github_stats
node_github_app -->|"collects contributors"| node_github_insights
node_github_app -->|"collects commits"| node_github_insights
node_github_app -->|"saves analysis"| node_github_export

click node_news_app "https://github.com/b5119/python-web-scraping-projects/blob/main/01-news-scraper/scraper.py"
click node_news_export "https://github.com/b5119/python-web-scraping-projects/blob/main/01-news-scraper/scraper.py"
click node_price_app "https://github.com/b5119/python-web-scraping-projects/blob/main/02-price-tracker/tracker.py"
click node_price_history "https://github.com/b5119/python-web-scraping-projects/blob/main/02-price-tracker/tracker.py"
click node_price_alerts "https://github.com/b5119/python-web-scraping-projects/blob/main/02-price-tracker/tracker.py"
click node_price_charts "https://github.com/b5119/python-web-scraping-projects/blob/main/02-price-tracker/tracker.py"
click node_job_app "https://github.com/b5119/python-web-scraping-projects/blob/main/03-job-aggregator/aggregator.py"
click node_job_filters "https://github.com/b5119/python-web-scraping-projects/blob/main/03-job-aggregator/aggregator.py"
click node_job_export "https://github.com/b5119/python-web-scraping-projects/blob/main/03-job-aggregator/aggregator.py"
click node_weather_app "https://github.com/b5119/python-web-scraping-projects/blob/main/04-weather-collector/collector.py"
click node_weather_history "https://github.com/b5119/python-web-scraping-projects/blob/main/04-weather-collector/collector.py"
click node_weather_reports "https://github.com/b5119/python-web-scraping-projects/blob/main/04-weather-collector/collector.py"
click node_github_app "https://github.com/b5119/python-web-scraping-projects/blob/main/05-github-analyzer/analyzer.py"
click node_github_stats "https://github.com/b5119/python-web-scraping-projects/blob/main/05-github-analyzer/analyzer.py"
click node_github_insights "https://github.com/b5119/python-web-scraping-projects/blob/main/05-github-analyzer/analyzer.py"
click node_github_export "https://github.com/b5119/python-web-scraping-projects/blob/main/05-github-analyzer/analyzer.py"

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_news_app,node_news_sources,node_news_export,node_user toneBlue
class node_price_app,node_shops,node_price_history,node_price_alerts,node_price_charts toneAmber
class node_job_app,node_job_boards,node_job_filters,node_job_export toneMint
class node_weather_app,node_weather_api,node_weather_history,node_weather_reports toneRose
class node_github_app,node_github_api,node_github_stats,node_github_insights,node_github_export toneIndigo
```

## Components

### News Scraper

- [News workflow](https://github.com/b5119/python-web-scraping-projects/blob/main/01-news-scraper/scraper.py): `01-news-scraper/scraper.py`
- **News sites**
- [CSV / JSON export](https://github.com/b5119/python-web-scraping-projects/blob/main/01-news-scraper/scraper.py): `01-news-scraper/scraper.py`

### Price Tracker

- [Price workflow](https://github.com/b5119/python-web-scraping-projects/blob/main/02-price-tracker/tracker.py): `02-price-tracker/tracker.py`
- **Product sites**
- [Price history](https://github.com/b5119/python-web-scraping-projects/blob/main/02-price-tracker/tracker.py): `02-price-tracker/tracker.py`
- [Drop alerts](https://github.com/b5119/python-web-scraping-projects/blob/main/02-price-tracker/tracker.py): `02-price-tracker/tracker.py`
- [History charts](https://github.com/b5119/python-web-scraping-projects/blob/main/02-price-tracker/tracker.py): `02-price-tracker/tracker.py`

### Job Aggregator

- [Job workflow](https://github.com/b5119/python-web-scraping-projects/blob/main/03-job-aggregator/aggregator.py): `03-job-aggregator/aggregator.py`
- **Job board APIs**
- [Filter & dedupe](https://github.com/b5119/python-web-scraping-projects/blob/main/03-job-aggregator/aggregator.py): `03-job-aggregator/aggregator.py`
- [CSV / JSON export](https://github.com/b5119/python-web-scraping-projects/blob/main/03-job-aggregator/aggregator.py): `03-job-aggregator/aggregator.py`

### Weather Collector

- [Weather workflow](https://github.com/b5119/python-web-scraping-projects/blob/main/04-weather-collector/collector.py): `04-weather-collector/collector.py`
- **OpenWeatherMap**
- [Weather history](https://github.com/b5119/python-web-scraping-projects/blob/main/04-weather-collector/collector.py): `04-weather-collector/collector.py`
- [Forecast & reports](https://github.com/b5119/python-web-scraping-projects/blob/main/04-weather-collector/collector.py): `04-weather-collector/collector.py`

### GitHub Analyzer

- [Repository analysis](https://github.com/b5119/python-web-scraping-projects/blob/main/05-github-analyzer/analyzer.py): `05-github-analyzer/analyzer.py`
- **GitHub API**
- [Repository statistics](https://github.com/b5119/python-web-scraping-projects/blob/main/05-github-analyzer/analyzer.py): `05-github-analyzer/analyzer.py`
- [Contributors & trends](https://github.com/b5119/python-web-scraping-projects/blob/main/05-github-analyzer/analyzer.py): `05-github-analyzer/analyzer.py`
- [JSON analysis](https://github.com/b5119/python-web-scraping-projects/blob/main/05-github-analyzer/analyzer.py): `05-github-analyzer/analyzer.py`

### Other components

- **User**

## Connections

- User → News workflow: runs (evidence: `README.md`)
- News workflow → News sites: scrapes (evidence: `01-news-scraper/scraper.py`)
- News workflow → CSV / JSON export: exports (evidence: `01-news-scraper/scraper.py`)
- User → Price workflow: runs (evidence: `README.md`)
- Price workflow → Product sites: requests prices (evidence: `02-price-tracker/tracker.py`)
- Price workflow → Price history: loads / saves (evidence: `02-price-tracker/tracker.py`)
- Price workflow → Drop alerts: checks drops (evidence: `02-price-tracker/tracker.py`)
- Price workflow → History charts: visualizes history (evidence: `README.md`)
- User → Job workflow: runs (evidence: `README.md`)
- Job workflow → Job board APIs: fetches listings (evidence: `03-job-aggregator/aggregator.py`)
- Job workflow → Filter & dedupe: filters / dedupes (evidence: `03-job-aggregator/aggregator.py`)
- Job workflow → CSV / JSON export: exports (evidence: `README.md`)
- User → Weather workflow: runs (evidence: `README.md`)
- Weather workflow → OpenWeatherMap: requests conditions (evidence: `04-weather-collector/collector.py`)
- Weather workflow → OpenWeatherMap: requests forecast (evidence: `04-weather-collector/collector.py`)
- Weather workflow → Weather history: saves history (evidence: `04-weather-collector/collector.py`)
- Weather workflow → Forecast & reports: displays / compares (evidence: `04-weather-collector/collector.py`)
- Weather workflow → Forecast & reports: charts data (evidence: `README.md`)
- User → Repository analysis: runs (evidence: `README.md`)
- Repository analysis → GitHub API: requests data (evidence: `05-github-analyzer/analyzer.py`)
- Repository analysis → GitHub API: checks rate limit (evidence: `05-github-analyzer/analyzer.py`)
- Repository analysis → Repository statistics: collects statistics (evidence: `05-github-analyzer/analyzer.py`)
- Repository analysis → Contributors & trends: collects contributors (evidence: `05-github-analyzer/analyzer.py`)
- Repository analysis → Contributors & trends: collects commits (evidence: `05-github-analyzer/analyzer.py`)
- Repository analysis → JSON analysis: saves analysis (evidence: `05-github-analyzer/analyzer.py`)
