Files
EA/OI EA/oi_scraper/setup_env.bat
Kunthawat Greethong 39ce46877e Add files
2026-01-12 09:14:10 +07:00

35 lines
898 B
Batchfile

@echo off
REM ==========================================
REM CME OI Scraper - Virtual Environment Setup
REM ==========================================
echo ==========================================
echo Setting up Python Virtual Environment
echo ==========================================
REM Navigate to script directory
cd /d %~dp0
REM Create virtual environment
echo Creating virtual environment...
py -3 -m venv venv
REM Activate virtual environment and install dependencies
echo Installing dependencies...
call venv\Scripts\activate.bat
pip install --upgrade pip
pip install -r requirements.txt
REM Install playwright browser
echo Installing Playwright browser...
python -m playwright install chromium
echo ==========================================
echo Setup Complete!
echo ==========================================
echo.
echo To run the scraper, use: run_with_venv.bat
echo.
pause