A single Flask dashboard for extracting visible Instagram and Facebook metrics into Excel, with live logs, manual login/verification, and a strict GO gate before collection.
- Opens a real browser session with Playwright.
- Pauses for manual login or verification (no CAPTCHA bypass).
- Requires a GO signal before scraping begins.
- Streams status + logs to the dashboard in real time.
- Exports the collected metrics to Excel.
- Python 3.10+
- Playwright browsers installed (run once):
python -m playwright installpython -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt
python app.pyInstagram routes use /api/* and Facebook routes use /facebook/api/*.
POST /api/validatePOST /api/startGET /api/statusPOST /api/goPOST /api/cancelPOST /api/clear-logsPOST /api/focus-browserGET /api/downloadWS /ws/dashboard
Facebook mirrors the same endpoints under /facebook.
app.py
core/
etl/
logging/
platforms/
session/
state/
static/
css/
js/
templates/
dashboard.html
- The scraper only uses visible data. Private or hidden content is not accessed.
- If verification appears, complete it manually and then click GO.