mirror of
https://github.com/j93es/browser-use-oauth.git
synced 2026-06-04 06:31:51 +09:00
feat: OAuth 리스트 추출 및 모델 수정, 파일 생성 및 설정 과정 개선
- Windows에서 storage_state 이슈가 일어납니다.
This commit is contained in:
parent
6ddeed2173
commit
1767cd5861
5 changed files with 18 additions and 27 deletions
6
setup.py
6
setup.py
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue