Initial commit

This commit is contained in:
jerem
2026-06-13 13:32:38 +02:00
commit 528d994ea8
9 changed files with 1003 additions and 0 deletions

20
run.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
set -e
cd "$(dirname "$0")"
# Python Homebrew en priorité (le python système 3.9 est trop vieux pour Playwright récent)
if [ -x /opt/homebrew/bin/python3 ]; then
PY=/opt/homebrew/bin/python3
else
PY=$(command -v python3)
fi
if [ ! -d .venv ]; then
echo "Première installation (environnement Python + Chromium), patientez quelques minutes..."
"$PY" -m venv .venv
.venv/bin/pip install --upgrade pip
.venv/bin/pip install -r requirements.txt
.venv/bin/playwright install chromium
fi
exec .venv/bin/python app.py