Add files
This commit is contained in:
34
OI EA/oi_scraper/setup_env.bat
Normal file
34
OI EA/oi_scraper/setup_env.bat
Normal file
@@ -0,0 +1,34 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user