Improve Airbnb browser automation and calendar updates.
CI / skip-ci-check (push) Successful in 4s
CI / secret-scan (push) Successful in 3s
CI / python-ci (push) Successful in 32s

Adds browser helper, expands calendar sync, and documents handoff status.
This commit is contained in:
2026-06-04 13:08:32 -04:00
parent 1ac551923d
commit dfed03897d
11 changed files with 1084 additions and 81 deletions
+14 -4
View File
@@ -1,12 +1,22 @@
#!/usr/bin/env python3
"""One-time interactive Airbnb login to save session state.
Run this once (or whenever your session expires):
Run on a machine with a display (Mac recommended). Re-run when Airbnb
sessions expire or calendar automation hits login/auth errors.
Default (Chromium):
python scripts/airbnb_login.py
A headed Chromium browser will open. Log in manually, complete 2FA,
then return to the terminal and press Enter. Your session cookies
and localStorage will be saved to state.json for headless reuse.
Optional stealth Firefox (if Airbnb blocks Chromium — same mode for login + runs):
pip install 'git+https://github.com/feder-cr/invisible_playwright.git'
python -m invisible_playwright fetch
AIRBNB_STEALTH=1 python scripts/airbnb_login.py
Then copy to automationlab:
scp state.json root@10.0.10.45:/opt/atanyrate/state.json
"""
from pathlib import Path