Files
static/lib/save_cookie_once.py

22 lines
571 B
Python

# 실행: python lib/save_cookie_once.py
import os, sys
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import time
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from lib.cookie_util import save_cookies
options = Options()
driver = webdriver.Chrome(options=options)
driver.get('https://asp.upsolution.co.kr/')
print("브라우저가 열렸습니다. 로그인 완료 후 Enter를 누르세요...")
input()
save_cookies(driver)
print("✅ 쿠키 저장 완료: conf/cookies.json")
driver.quit()