#!/usr/bin/env bash set -euo pipefail # Create and activate a venv, install dependencies and Playwright browsers (mac/linux) python3 -m venv .venv source .venv/bin/activate pip install --upgrade pip pip install -r requirements.txt # Install Playwright browsers if command -v playwright >/dev/null 2>&1; then playwright install chromium else pip install playwright .venv/bin/playwright install chromium fi mkdir -p logs .browser_state echo "Installation complete. Activate with: source .venv/bin/activate"