Files
Downloader/check.sh
T
R3ap3randClaude Sonnet 5 453141ed6a first commit
Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-09-24 18:36:29 -05:00

36 lines
1.2 KiB
Bash

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