A professional suite of Python scripts designed for automated web scraping, data processing, statistical strategy evaluation, visual report generation, and Telegram/Google Sheets integration. Built to minimize manual effort and handle complex web interactions (including Cloudflare bypass) for sports/Esports analytics.
-
main4.py— BO3 Global Failure Analysis- Scrapes match results from HLTV events using
undetected-chromedriver. - Filters matches strictly to BO3 format, calculates Under/Over 21.5 round thresholds, and identifies teams prone to long or short games.
- Exports structured datasets into Excel (
BO3_STRATEGY_REPORT.xlsx).
- Scrapes match results from HLTV events using
-
main5.py— Comprehensive Statistics & MapPool Analysis- Performs deep analysis of map pools and team anomalies across specific maps (Anubis, Mirage, Inferno, etc.).
- Generates detailed tournament reports and packages data into multi-sheet workbooks (
HLTV_FINAL_REPORT.xlsx).
-
main6.py— Dual Strategy Chain Analysis (Denis Miller Method)- Analyzes chronological map chains in BO3 matches to evaluate consecutive strategy triggers (e.g., Over-Over ➔ Under transitions or Under-Under ➔ Over transitions).
- Calculates winrates and outputs structured logs (
DUAL_STRATEGY_REPORT.xlsx).
-
generate_image.py&generate_predictions_image.py— Visual Report Renderers- Converts raw text analytical logs and strategy outputs into polished, dark-themed PNG preview cards (
analysis_result.png,PREDICTIONS_REPORT.png) usingimgkitandwkhtmltoimage.
- Converts raw text analytical logs and strategy outputs into polished, dark-themed PNG preview cards (
-
telegram_bot.py— OCR & Prediction Formatter Bot- A Telegram bot that parses screenshot data using
pytesseract(OCR), extracts success probabilities, formats match predictions, and generates ready-to-publish channel posts.
- A Telegram bot that parses screenshot data using
-
google_sheets_bot.py— Automated Google Sheets Sync Bot- Automatically records match outcomes, calculates profit/loss based on custom flat/odds logic, and tracks 30-day performance metrics via Google Sheets API.
Clean, error-free command-line execution with standardized deconstructors ensuring zero traceback errors on Windows environments.
Step-by-step processing and probability calculations.
Visual summaries generated post-analysis for quick decision-making.
Chronological mapping and performance tracking of match chains.
Structured cloud-based data tracking and profit-loss monitoring.
-
Clone the repository:
git clone https://github.com/Denis-codeQween/High-Performance-Data-Pipeline-Predictive-Strategy-Backtesting-Engine.git cd High-Performance-Data-Pipeline-Predictive-Strategy-Backtesting-Engine -
Install required dependencies:
pip install -r requirements.txt
-
External Dependencies:
- Google Chrome (compatible version with
undetected-chromedriver).💡 Note on Chrome Driver Compatibility: In scripts utilizing
undetected-chromedriver(such asmain4.py), the browser version is explicitly specified (e.g.,version_main=151). If you experience driver launch errors, make sure to update this parameter to match your currently installed Google Chrome major version, or remove it to let the library detect it automatically. - wkhtmltopdf / wkhtmltoimage (required for image generation scripts). Make sure the path in the code matches your installation directory (e.g.,
C:\Program Files\wkhtmltopdf\bin\wkhtmltoimage.exe). - Tesseract-OCR (required for the Telegram OCR bot). Download and install binaries for Windows/Linux.
- Google Chrome (compatible version with
- API Tokens & Credentials:
- Real Telegram bot tokens and Google Cloud service account keys (
credentials.json) are strictly excluded from this repository for security reasons. - To run the Google Sheets bot, create your own project in Google Cloud Console, generate a service account key, and save it as
credentials.jsonin the root folder. - Always ensure
credentials.jsonand.envfiles are listed in your.gitignore.
- Real Telegram bot tokens and Google Cloud service account keys (
Run the main scraping and analysis script:
python main5.pyRun the Telegram prediction bot locally:
python telegram_bot.py




