This project records full-screen browser sessions using Playwright and FFmpeg, logs user actions, and extracts event-aligned frames.
conda env create -f environment.yml
conda activate capture
playwright install chromiumpython capture.pyThis launches Chromium, records the screen, and logs events to logs/ and videos/.
python parser_mac.py \
--basename 315b7b51_1760989935 \
--logs-dir logs \
--videos-dir videos \
--img-dir images \
--include-types mouse_move click scroll_start scroll_end type type_commit window_focus window_blur tab_hidden tab_visible navigation recorder_init \
--offset-ms 0 \
--min-gap-ms 50 \
--ext jpg \
--quality 2 \
--prefer lastThis extracts one frame per event into images/.
videos/ # Screen recordings (.mp4)
logs/ # Event logs (.jsonl)
images/ # Extracted event frames