Files
parser-v1/launch.bat
T
Aks f78f35fb3f init: Parser v1 — Lead Generation Engine
Парсер лидов МБ РФ: Яндекс.Карты + HH.ru + обогащение DaData/ЕГРЮЛ/Rusprofile + Streamlit CRM.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-09 12:56:06 +03:00

50 lines
1.2 KiB
Batchfile

@echo off
chcp 65001 >nul
cd /d "%~dp0"
REM === Check venv ===
if not exist ".venv\Scripts\activate.bat" (
echo.
echo === First run: creating virtual environment .venv ===
python -m venv .venv
if errorlevel 1 (
echo [ERROR] Failed to create venv. Install Python 3.12+ and ensure it is in PATH.
pause
exit /b 1
)
)
call ".venv\Scripts\activate.bat"
REM === Install deps on first run ===
if not exist ".install_done" (
echo.
echo === Installing libraries from requirements.txt ===
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
if errorlevel 1 (
echo [ERROR] Failed to install requirements.
pause
exit /b 1
)
echo.
echo === Installing Playwright Chromium for Botasaurus ===
python -m playwright install chromium
if errorlevel 1 (
echo [WARN] Chromium install failed. Parser may not work correctly.
echo Try manually: playwright install chromium
pause
)
REM Marker file
echo done > .install_done
echo.
echo === Install complete ===
echo.
)
REM === Run launcher ===
python launcher.py
pause