mirror of
https://github.com/j93es/browser-use-oauth.git
synced 2026-06-04 06:31:51 +09:00
[Enhancement] setup_storage_state 및 GetProfile 함수를 비동기 처리로 변경
This commit is contained in:
parent
adec1f5e49
commit
7ae5834d82
3 changed files with 5 additions and 6 deletions
|
|
@ -2,11 +2,10 @@ from lib.utils.browser_use.func import *
|
|||
|
||||
# Initialize configuration
|
||||
proxy_url = setup_proxy()
|
||||
storage_state_path = setup_storage_state()
|
||||
|
||||
# Create browser profile
|
||||
def GetProfile():
|
||||
setup_storage_state()
|
||||
async def GetProfile():
|
||||
storage_state_path = await setup_storage_state()
|
||||
profile = BrowserProfile(
|
||||
# Security settings
|
||||
disable_security=True,
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ def setup_proxy():
|
|||
return None
|
||||
|
||||
|
||||
def setup_storage_state():
|
||||
async def setup_storage_state():
|
||||
"""Setup browser storage state for session persistence."""
|
||||
# Get the script directory to ensure correct path resolution
|
||||
script_dir = Path(__file__).parent.parent.parent.parent
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue