cat > /tmp/save_cookies.py << 'EOF' import time, json, os from selenium import webdriver from selenium.webdriver.firefox.options import Options from selenium.webdriver.firefox.firefox_profile import FirefoxProfile import glob profile_dir = os.path.expanduser("~/Library/Application Support/Firefox/Profiles") profiles = glob.glob(f"{profile_dir}/*.default-release") + glob.glob(f"{profile_dir}/*.default") profile = FirefoxProfile(profiles[0]) options = Options() options.profile = profile driver = webdriver.Firefox(options=options) try: driver.get("https://watch.lifetimemovieclub.com") print("Log into Lifetime Movie Club in the Firefox window.") print("Once logged in, press Enter here...") input() cookies = driver.get_cookies() for site in ["https://watch.historyvault.com", "https://watch.aecrimecentral.com"]: driver.get(site) time.sleep(4) cookies.extend(driver.get_cookies()) cookie_file = os.path.expanduser("~/.aetn_cookies.json") with open(cookie_file, 'w') as f: json.dump(cookies, f, indent=2) print(f"✅ Saved {len(cookies)} cookies to {cookie_file}") finally: driver.quit() EOF python3 /tmp/save_cookies.py