How mohamedgamil27/egx30-data-pipeline works
This repository is a daily Egyptian market-data collection pipeline. Users run three independent collectors: an EGX30 index summary from African Markets, listed-company and sector rows from African Markets, and an all-stock screener snapshot from TradingView. Each collector fetches and parses its source, then writes dated CSV and JSON output. Shared HTTP, validation, and atomic-output helpers support those flows. The README also describes an experimental, manual-only official EGX path in the EGX30 collector. Some connections are documented only at the pipeline level; unsampled behavior is not inferred.
Main entry points: collect_egx30.py EGX30 collector · collect_listed_companies.py Listed-company collector · collect_tradingview_egypt_stocks.py TradingView collector · output.py Atomic output
Components 15
Collection
- EGX30 collector
src/collect_egx30.py - Listed-company collector
src/collect_listed_companies.py - TradingView collector
src/collect_tradingview_egypt_stocks.py - Official EGX experiment
src/collect_egx30.py
Source parsing
- African Markets EGX parser
src/parsers/african_markets_egx.py - Companies parser
src/parsers/african_markets_companies.py - TradingView parser
src/parsers/tradingview_egypt.py
Shared runtime
- HTTP fetch
src/common/http.py - Value validation
src/common/validation.py - Atomic output
src/common/output.py
Daily outputs
- Dated CSV and JSON
data
Other components
- Operator
- African Markets
- TradingView
- Official EGX
Connections 21
- Operator → EGX30 collector: runs
README.md - Operator → Listed-company collector: runs
README.md - Operator → TradingView collector: runs
README.md - EGX30 collector → HTTP fetch: fetches through
src/collect_egx30.py - Listed-company collector → HTTP fetch: fetches through
src/collect_listed_companies.py - TradingView collector → HTTP fetch: fetches through
src/collect_tradingview_egypt_stocks.py - EGX30 collector → African Markets EGX parser: parses with
src/collect_egx30.py - Listed-company collector → Companies parser: parses with
src/collect_listed_companies.py - TradingView collector → TradingView parser: parses with
src/collect_tradingview_egypt_stocks.py - African Markets EGX parser → Value validation: uses
src/parsers/african_markets_egx.py - Companies parser → Value validation: uses
src/parsers/african_markets_companies.py - TradingView parser → Value validation: uses
src/parsers/tradingview_egypt.py - EGX30 collector → Atomic output: writes through
src/collect_egx30.py - Listed-company collector → Atomic output: writes through
src/collect_listed_companies.py - TradingView collector → Atomic output: writes through
src/collect_tradingview_egypt_stocks.py - Atomic output → Dated CSV and JSON: writes
src/common/output.py - EGX30 collector → African Markets: collects from
README.md - Listed-company collector → African Markets: collects from
README.md - TradingView collector → TradingView: collects from
README.md - Operator → Official EGX experiment: manually dispatches
README.md - Official EGX experiment → Official EGX: experimental collection
README.md