Improve Airbnb browser automation and calendar updates.
Adds browser helper, expands calendar sync, and documents handoff status.
This commit is contained in:
+14
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user