@echo off REM ========================================== REM CME OI Scraper - Run with Virtual Environment REM ========================================== REM Navigate to script directory cd /d %~dp0 echo ========================================== echo CME OI Scraper echo ========================================== REM Activate virtual environment call venv\Scripts\activate.bat REM Run Python scraper python main.py REM Pause for 5 seconds if running manually (not scheduled) if "%1"=="--scheduled" goto :eof timeout /t 5