How sarusadgac/google-trends-data-fetcher works
Main Components
a. Data Collection Layer
• Google Trends API Interface
• Data Fetcher Service (main.py)
• Country-specific handlers (countries.py)
• Flag data handler (flags.py)
b. Storage Layer
• JSON Data Store (json_data directory)
• Text Data Store (text_data directory)
c. Presentation Layer
• HTML Generator (generate_html.py)
• Web Interface (index.html)
d. Automation Layer
• GitHub Actions Workflow (.github/workflows/main.yml)
Component Relationships
[GitHub Actions Workflow]
• ↓
[Data Collection Layer]
• ↙ ↘
[JSON Store] [Text Store]
• ↘ ↙
[HTML Generator]
• ↓
[Web Interface]
Important Details
a. Data Flow Annotations:
• Periodic data collection (timing from GitHub Actions)
• Data transformation paths
• Storage write/read operations
b. Component Descriptions:
• Country-specific data collection
• Flag integration
• Data format transformations (JSON/Text)
• HTML generation process
Technical Specifications
• File formats (JSON, TXT, HTML)
• Update frequency
• Number of supported countries (51)
• Data types collected (search trends)
Integration Points
External service connections:
• Google Trends API
• Flag CDN (flagcdn.com)
• GitHub Pages (if used for hosting)