# metakrist/scraping_youtube_api architecture

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

- Interactive diagram: https://gitdiagram.com/metakrist/scraping_youtube_api
- Repository: https://github.com/metakrist/scraping_youtube_api

## Overview

This repository is a Jupyter-notebook project for collecting YouTube channel and video metadata through the YouTube Data API, then analyzing and visualizing it with Pandas and Seaborn. Its two documented workflows compare multiple channels and analyze videos from a selected channel. The notebook itself was not included in the inspected source excerpts, so the component relationships below rely on the README’s workflow description rather than verified notebook calls.

Main entry points: [`ScrapingYT.ipynb`](https://github.com/metakrist/scraping_youtube_api/blob/main/ScrapingYT.ipynb) (Scraping notebook)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_collection["Data collection"]
  node_notebook["Scraping notebook<br/>[ScrapingYT.ipynb]"]
  node_channel_fetch["Channel extraction<br/>[ScrapingYT.ipynb]"]
  node_video_fetch["Video extraction<br/>[ScrapingYT.ipynb]"]
end

subgraph group_analysis["Analysis and visualization"]
  node_channel_data["Channel DataFrame<br/>[ScrapingYT.ipynb]"]
  node_video_data["Video DataFrame<br/>[ScrapingYT.ipynb]"]
  node_channel_compare["Channel comparison<br/>[ScrapingYT.ipynb]"]
  node_video_analysis["Video analysis<br/>[ScrapingYT.ipynb]"]
  node_visualizations["Visualizations<br/>[ScrapingYT.ipynb]"]
end

node_user(("Analyst"))
node_youtube_api["YouTube Data API"]

node_user -->|"opens"| node_notebook
node_notebook -->|"runs workflow"| node_channel_fetch
node_notebook -->|"runs workflow"| node_video_fetch
node_channel_fetch -->|"fetches channel data"| node_youtube_api
node_video_fetch -->|"fetches video data"| node_youtube_api
node_channel_fetch -->|"loads records"| node_channel_data
node_video_fetch -->|"loads records"| node_video_data
node_channel_data -->|"compares channels"| node_channel_compare
node_channel_compare -->|"visualizes comparison"| node_visualizations
node_video_data -->|"analyzes metrics"| node_video_analysis
node_video_analysis -->|"visualizes results"| node_visualizations

click node_notebook "https://github.com/metakrist/scraping_youtube_api/blob/main/ScrapingYT.ipynb"
click node_channel_fetch "https://github.com/metakrist/scraping_youtube_api/blob/main/ScrapingYT.ipynb"
click node_video_fetch "https://github.com/metakrist/scraping_youtube_api/blob/main/ScrapingYT.ipynb"
click node_channel_data "https://github.com/metakrist/scraping_youtube_api/blob/main/ScrapingYT.ipynb"
click node_video_data "https://github.com/metakrist/scraping_youtube_api/blob/main/ScrapingYT.ipynb"
click node_channel_compare "https://github.com/metakrist/scraping_youtube_api/blob/main/ScrapingYT.ipynb"
click node_video_analysis "https://github.com/metakrist/scraping_youtube_api/blob/main/ScrapingYT.ipynb"
click node_visualizations "https://github.com/metakrist/scraping_youtube_api/blob/main/ScrapingYT.ipynb"

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_notebook,node_channel_fetch,node_video_fetch toneBlue
class node_channel_data,node_video_data,node_channel_compare,node_video_analysis,node_visualizations toneAmber
class node_user toneIndigo
class node_youtube_api toneMint
```

## Components

### Data collection

- [Scraping notebook](https://github.com/metakrist/scraping_youtube_api/blob/main/ScrapingYT.ipynb): `ScrapingYT.ipynb`
- [Channel extraction](https://github.com/metakrist/scraping_youtube_api/blob/main/ScrapingYT.ipynb): `ScrapingYT.ipynb`
- [Video extraction](https://github.com/metakrist/scraping_youtube_api/blob/main/ScrapingYT.ipynb): `ScrapingYT.ipynb`

### Analysis and visualization

- [Channel DataFrame](https://github.com/metakrist/scraping_youtube_api/blob/main/ScrapingYT.ipynb): `ScrapingYT.ipynb`
- [Video DataFrame](https://github.com/metakrist/scraping_youtube_api/blob/main/ScrapingYT.ipynb): `ScrapingYT.ipynb`
- [Channel comparison](https://github.com/metakrist/scraping_youtube_api/blob/main/ScrapingYT.ipynb): `ScrapingYT.ipynb`
- [Video analysis](https://github.com/metakrist/scraping_youtube_api/blob/main/ScrapingYT.ipynb): `ScrapingYT.ipynb`
- [Visualizations](https://github.com/metakrist/scraping_youtube_api/blob/main/ScrapingYT.ipynb): `ScrapingYT.ipynb`

### Other components

- **Analyst**
- **YouTube Data API**

## Connections

- Analyst → Scraping notebook: opens (evidence: `README.md`)
- Scraping notebook → Channel extraction: runs workflow (evidence: `README.md`)
- Scraping notebook → Video extraction: runs workflow (evidence: `README.md`)
- Channel extraction → YouTube Data API: fetches channel data (evidence: `README.md`)
- Video extraction → YouTube Data API: fetches video data (evidence: `README.md`)
- Channel extraction → Channel DataFrame: loads records (evidence: `README.md`)
- Video extraction → Video DataFrame: loads records (evidence: `README.md`)
- Channel DataFrame → Channel comparison: compares channels (evidence: `README.md`)
- Channel comparison → Visualizations: visualizes comparison (evidence: `README.md`)
- Video DataFrame → Video analysis: analyzes metrics (evidence: `README.md`)
- Video analysis → Visualizations: visualizes results (evidence: `README.md`)
