# aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results architecture

> Architecture diagram of the GitHub repository aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results
- Repository: https://github.com/aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results

## Overview

This repository contains three standalone scripts for Google-search-based keyword analysis, not a shared application. Each searches configured terms, fetches result pages, extracts and counts keywords, then writes result data and counts to Excel. The variants group counts by year, content type, or year with a slightly different search-query parser. Relationships shown are visible in the scripts; external search and page-fetch services are represented separately.

Main entry points: [`analyzedbyyear.py`](https://github.com/aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results/blob/main/analyzedbyyear.py) (Search Results), [`analysisbydatatype.py`](https://github.com/aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results/blob/main/analysisbydatatype.py) (Search Results), [`ContentExtractionandKeywordFrequencyAnalysisfromGoogleSearchResults.py`](https://github.com/aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results/blob/main/ContentExtractionandKeywordFrequencyAnalysisfromGoogleSearchResults.py) (Search Results)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_year_analysis["Year Analysis"]
  node_year_search["Search Results<br/>[analyzedbyyear.py]"]
  node_year_pages["Page Keyword Analysis<br/>[analyzedbyyear.py]"]
  node_year_export["Excel Export<br/>[analyzedbyyear.py]"]
end

subgraph group_type_analysis["Type Analysis"]
  node_type_search["Search Results"]
  node_type_pages["Type Keyword Analysis"]
  node_type_export["Excel Export"]
end

subgraph group_extraction_analysis["Extraction Analysis"]
  node_extract_search["Search Results"]
  node_extract_pages["Year Keyword Analysis"]
  node_extract_export["Excel Export"]
end

node_user(("Search Configurator"))
node_google_api["Google Custom Search"]
node_web_pages["Result Web Pages"]

node_user -->|"provides terms"| node_year_search
node_year_search -->|"queries"| node_google_api
node_year_search -->|"passes results"| node_year_pages
node_year_pages -->|"fetches pages"| node_web_pages
node_year_pages -->|"passes counts"| node_year_export
node_user -->|"provides terms"| node_type_search
node_type_search -->|"queries"| node_google_api
node_type_search -->|"passes results"| node_type_pages
node_type_pages -->|"fetches pages"| node_web_pages
node_type_pages -->|"passes counts"| node_type_export
node_user -->|"provides terms"| node_extract_search
node_extract_search -->|"queries"| node_google_api
node_extract_search -->|"passes results"| node_extract_pages
node_extract_pages -->|"fetches pages"| node_web_pages
node_extract_pages -->|"passes counts"| node_extract_export

click node_year_search "https://github.com/aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results/blob/main/analyzedbyyear.py"
click node_year_pages "https://github.com/aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results/blob/main/analyzedbyyear.py"
click node_year_export "https://github.com/aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results/blob/main/analyzedbyyear.py"
click node_type_search "https://github.com/aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results/blob/main/analysisbydatatype.py"
click node_type_pages "https://github.com/aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results/blob/main/analysisbydatatype.py"
click node_type_export "https://github.com/aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results/blob/main/analysisbydatatype.py"
click node_extract_search "https://github.com/aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results/blob/main/ContentExtractionandKeywordFrequencyAnalysisfromGoogleSearchResults.py"
click node_extract_pages "https://github.com/aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results/blob/main/ContentExtractionandKeywordFrequencyAnalysisfromGoogleSearchResults.py"
click node_extract_export "https://github.com/aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results/blob/main/ContentExtractionandKeywordFrequencyAnalysisfromGoogleSearchResults.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_year_search,node_year_pages,node_year_export toneBlue
class node_type_search,node_type_pages,node_type_export toneAmber
class node_extract_search,node_extract_pages,node_extract_export toneMint
class node_user,node_google_api,node_web_pages toneIndigo
```

## Components

### Year Analysis

- [Search Results](https://github.com/aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results/blob/main/analyzedbyyear.py): `analyzedbyyear.py`
- [Page Keyword Analysis](https://github.com/aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results/blob/main/analyzedbyyear.py): `analyzedbyyear.py`
- [Excel Export](https://github.com/aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results/blob/main/analyzedbyyear.py): `analyzedbyyear.py`

### Type Analysis

- [Search Results](https://github.com/aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results/blob/main/analysisbydatatype.py): `analysisbydatatype.py`
- [Type Keyword Analysis](https://github.com/aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results/blob/main/analysisbydatatype.py): `analysisbydatatype.py`
- [Excel Export](https://github.com/aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results/blob/main/analysisbydatatype.py): `analysisbydatatype.py`

### Extraction Analysis

- [Search Results](https://github.com/aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results/blob/main/ContentExtractionandKeywordFrequencyAnalysisfromGoogleSearchResults.py): `ContentExtractionandKeywordFrequencyAnalysisfromGoogleSearchResults.py`
- [Year Keyword Analysis](https://github.com/aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results/blob/main/ContentExtractionandKeywordFrequencyAnalysisfromGoogleSearchResults.py): `ContentExtractionandKeywordFrequencyAnalysisfromGoogleSearchResults.py`
- [Excel Export](https://github.com/aymeka/content-extraction-and-keyword-frequency-analysis-from-google-search-results/blob/main/ContentExtractionandKeywordFrequencyAnalysisfromGoogleSearchResults.py): `ContentExtractionandKeywordFrequencyAnalysisfromGoogleSearchResults.py`

### Other components

- **Search Configurator**
- **Google Custom Search**
- **Result Web Pages**

## Connections

- Search Configurator → Search Results: provides terms (evidence: `analyzedbyyear.py`)
- Search Results → Google Custom Search: queries (evidence: `analyzedbyyear.py`)
- Search Results → Page Keyword Analysis: passes results (evidence: `analyzedbyyear.py`)
- Page Keyword Analysis → Result Web Pages: fetches pages (evidence: `analyzedbyyear.py`)
- Page Keyword Analysis → Excel Export: passes counts (evidence: `analyzedbyyear.py`)
- Search Configurator → Search Results: provides terms (evidence: `analysisbydatatype.py`)
- Search Results → Google Custom Search: queries (evidence: `analysisbydatatype.py`)
- Search Results → Type Keyword Analysis: passes results (evidence: `analysisbydatatype.py`)
- Type Keyword Analysis → Result Web Pages: fetches pages (evidence: `analysisbydatatype.py`)
- Type Keyword Analysis → Excel Export: passes counts (evidence: `analysisbydatatype.py`)
- Search Configurator → Search Results: provides terms (evidence: `ContentExtractionandKeywordFrequencyAnalysisfromGoogleSearchResults.py`)
- Search Results → Google Custom Search: queries (evidence: `ContentExtractionandKeywordFrequencyAnalysisfromGoogleSearchResults.py`)
- Search Results → Year Keyword Analysis: passes results (evidence: `ContentExtractionandKeywordFrequencyAnalysisfromGoogleSearchResults.py`)
- Year Keyword Analysis → Result Web Pages: fetches pages (evidence: `ContentExtractionandKeywordFrequencyAnalysisfromGoogleSearchResults.py`)
- Year Keyword Analysis → Excel Export: passes counts (evidence: `ContentExtractionandKeywordFrequencyAnalysisfromGoogleSearchResults.py`)
