feat: OAuth 리스트 추출 및 모델 수정, 파일 생성 및 설정 과정 개선

- Windows에서 storage_state 이슈가 일어납니다.
This commit is contained in:
암냥 2025-06-23 20:38:02 +09:00
commit 1767cd5861
5 changed files with 18 additions and 27 deletions

View file

@ -9,7 +9,7 @@ def create_file_from_example(target: str, example: str) -> bool:
with open(example, 'r', encoding='utf-8') as example_file, \
open(target, 'w', encoding='utf-8') as target_file:
target_file.write(example_file.read())
os.startfile(target)
#os.startfile(target)
print(f"{target} 파일이 {example}에서 생성되었습니다.")
return True
else:
@ -44,8 +44,8 @@ def setup_storage():
print("======================================================")
print("👀 원하는 OAuth Providor를 직접 모두 로그인 한 후에 브라우저를 닫으면 설정이 완료됩니다.")
os.system('uv run playwright open https://google.com/ --save-storage=./data/storage_state.json')
if os.path.exists('./data/storage_state.json'):
os.startfile('./data/storage_state.json')
#if os.path.exists('./data/storage_state.json'):
# os.startfile('./data/storage_state.json')
print("✅ 쿠키와 로컬 스토리지 설정 완료.")
print("💾 ./data/storage_state.json 파일이 생성되었습니다.")
else: