How helloyug/github-actions-updators works
1. Repository purpose
This repo is an automation suite for collecting profile/platform statistics and emitting normalized JSON snapshots for downstream use in portfolios, dashboards, or websites.
2. Top-level architecture
The system is split into independent platform updaters rather than a single monolith. Each platform lives in its own folder and can run, fail, and be maintained without impacting the others.
3. Execution model
Every updater follows the same pipeline: read target accounts from creators.json, fetch stats from the external platform, transform the result into a consistent shape, then write output.json. This makes each platform a self-contained data-ingestion boundary.
4. Orchestration layer
run_all.py in the repository root is the master coordinator. It executes each platform updater sequentially and produces a root-level run_all.log that summarizes cross-platform success/failure.
5. Platform subsystems
The repo contains five provider-specific subsystems: github-updater, leetcode-updater, youtube-updater, instagram-updater, and linkedin-updater. Each folder has its own scraper implementation, helper utilities, dependency list, and runtime log, which keeps provider-specific fragility isolated.
6. External data sources and extraction approaches
The extraction mechanism differs by provider:
- GitHub: official REST API
- LeetCode: public GraphQL API
- YouTube: Playwright browser automation
- Instagram: Playwright plus HTML parsing
- LinkedIn: linkedin-api mobile-style API
These are the main integration boundaries in the architecture.
7. Configuration boundary
The primary input is creators.json inside each updater folder. A templates/creators.example.json file provides the expected schema, so the configuration is intentionally per-platform and decoupled from code.
8. Runtime and dependency isolation
Each updater has its own requirements.txt, so dependencies are scoped per platform instead of shared globally. This is important because the browser-automation updaters require Playwright/Chromium, while API-based updaters do not.
9. Logging and operational behavior
Each platform writes an updater.log in its own folder, while the orchestrator writes run_all.log. The logs capture retries, network activity, and failures, and are configured to retain only recent execution sessions for bounded log growth.
10. Automation and deployment
The repository is designed for GitHub Actions. The workflow template in templates/update-stats.example.yml runs on a weekly schedule, installs dependencies, executes run_all.py, and can commit refreshed JSON outputs back to the repo. Secrets such as GITHUB_TOKEN and LinkedIn credentials are used only where required by the platform integration.
11. Primary data flow
The architectural flow is: GitHub Actions or local execution → run_all.py or per-platform update.py → platform scraper/API/browser automation → normalized stats in output.json → optional commit and downstream consumption.
12. Key architectural boundary
The most important boundary is between the repo’s internal normalization layer and the external platform-specific APIs/UI surfaces. The repo’s job is not to store long-lived state; it acts as a scheduled extraction and transformation pipeline that produces fresh snapshots.
Main entry points: run_all.py Run all · github-updater/update.py Update · creators.example.json Creators schema · leetcode-updater/update.py Update
Components 25
Root orchestration
Repository-wide coordinator and shared deployment entrypoints.
GitHub updater
GitHub provider-specific ingestion boundary.
- Update · Entry script for the GitHub platform pipeline.
github-updater/update.py - Scraper · Fetches profile stats from the GitHub REST API.
github-updater/github_scraper.py - Helpers · Shared parsing and normalization helpers for GitHub data.
github-updater/utils.py - Creators · Per-platform target account list and input schema.
github-updater/creators.json - Output · Normalized GitHub stats emitted for downstream consumption.
LeetCode updater
LeetCode provider-specific ingestion boundary.
- Update · Entry script for the LeetCode platform pipeline.
leetcode-updater/update.py - GraphQL · Queries the public LeetCode GraphQL API.
leetcode-updater/leetcode.py - Helpers · Shared parsing and normalization helpers for LeetCode data.
leetcode-updater/utils.py - Creators · Per-platform target account list and input schema.
leetcode-updater/creators.json
YouTube updater
YouTube provider-specific ingestion boundary.
- Update · Entry script for the YouTube platform pipeline.
youtube-updater/update.py - Browser · Collects channel stats through Playwright automation.
youtube-updater/youtube.py - Helpers · Shared parsing and normalization helpers for YouTube data.
youtube-updater/utils.py - Creators · Per-platform target account list and input schema.
youtube-updater/creators.json
Instagram updater
Instagram provider-specific ingestion boundary.
- Update · Entry script for the Instagram platform pipeline.
instagram-updater/update.py - Scraper · Collects profile stats with browser automation and HTML parsing.
instagram-updater/instagram.py - Helpers · Shared parsing and normalization helpers for Instagram data.
instagram-updater/utils.py - Creators · Per-platform target account list and input schema.
instagram-updater/creators.json
LinkedIn updater
LinkedIn provider-specific ingestion boundary.
- Update · Entry script for the LinkedIn platform pipeline.
linkedin-updater/update.py - API client · Fetches profile stats through the LinkedIn API wrapper.
linkedin-updater/linkedin_scraper.py - Helpers · Shared parsing and normalization helpers for LinkedIn data.
linkedin-updater/utils.py - Creators · Per-platform target account list and input schema.
linkedin-updater/creators.json
Templates
Shared schema and workflow examples.
- Creators schema · Example schema for per-platform creators.json files.
templates/creators.example.json - Workflow template · Example GitHub Actions workflow for scheduled updates.
templates/update-stats.example.yml
Connections 30
- Run all → Update: executes · Coordinator launches each provider updater sequentially.
- Run all → Update: executes · Coordinator launches each provider updater sequentially.
- Run all → Update: executes · Coordinator launches each provider updater sequentially.
- Run all → Update: executes · Coordinator launches each provider updater sequentially.
- Run all → Update: executes · Coordinator launches each provider updater sequentially.
- Run all → Run log: writes · Cross-platform execution summary log.
- Update → Creators: reads · Loads target accounts to update.
- Update → Scraper: fetches via · Pulls stats from GitHub REST API.
- Update → Helpers: normalizes with · Transforms raw API data into the shared snapshot shape.
- Update → Output: writes · Emits normalized snapshot output.
- Update → Creators: reads · Loads target accounts to update.
- Update → GraphQL: fetches via · Queries the public GraphQL endpoint.
- Update → Helpers: normalizes with · Transforms raw API data into the shared snapshot shape.
- Update → Output: writes · Emits normalized snapshot output.
- Update → Creators: reads · Loads target accounts to update.
- Update → Browser: fetches via · Uses browser automation to collect stats.
- Update → Helpers: normalizes with · Transforms scraped data into the shared snapshot shape.
- Update → Creators: reads · Loads target accounts to update.
- Update → Scraper: fetches via · Uses browser automation and HTML parsing.
- Update → Helpers: normalizes with · Transforms scraped data into the shared snapshot shape.
- Update → Creators: reads · Loads target accounts to update.
- Update → API client: fetches via · Uses the LinkedIn API wrapper.
- Update → Helpers: normalizes with · Transforms raw API data into the shared snapshot shape.
- Workflow template → Run all: invokes · GitHub Actions workflow runs the repository coordinator.
- Workflow template → Update: can run · Workflow can also trigger platform updaters through the coordinator pattern.
- Creators schema → Creators: defines schema for · Template documents the expected creators file shape.
- Creators schema → Creators: defines schema for · Template documents the expected creators file shape.
- Creators schema → Creators: defines schema for · Template documents the expected creators file shape.
- Creators schema → Creators: defines schema for · Template documents the expected creators file shape.
- Creators schema → Creators: defines schema for · Template documents the expected creators file shape.