Initial commit with code

This commit is contained in:
2025-11-29 23:34:32 -08:00
commit 4b122182a4
9 changed files with 1162 additions and 0 deletions

25
runner.bat Normal file
View File

@@ -0,0 +1,25 @@
@echo off
setlocal
:: Set the project folder to this script's directory
set "PROJECT_DIR=%~dp0"
cd /d "%PROJECT_DIR%"
:: Check if venv folder exists; if not, create venv and install requirements
if not exist "venv\Scripts\python.exe" (
echo Creating virtual environment...
python -m venv venv
call venv\Scripts\activate.bat
echo Installing required packages...
pip install --upgrade pip
pip install flask selenium webdriver-manager beautifulsoup4
) else (
call venv\Scripts\activate.bat
)
:: Run the Flask server with logs redirected to server.log
echo Starting Flask server, logs will be written to server.log
start "" cmd /k "venv\Scripts\python.exe scraper_service.py"
endlocal
exit /b 0