mirror of
https://github.com/j93es/browser-use-oauth.git
synced 2026-06-04 07:51:52 +09:00
[Enhancement] BrowserProfile 설정 수정 및 창 크기 조정
This commit is contained in:
parent
2d3d3dfe88
commit
ed120f7a69
1 changed files with 5 additions and 2 deletions
7
main.py
7
main.py
|
|
@ -4,6 +4,7 @@ import os
|
|||
import csv
|
||||
import argparse
|
||||
from pathlib import Path
|
||||
from turtle import width
|
||||
import requests
|
||||
import time
|
||||
from typing import List
|
||||
|
|
@ -185,7 +186,7 @@ async def scan_one_url(url: str, skip_html_check: bool = False):
|
|||
# BrowserProfile에 모든 설정 포함
|
||||
profile = BrowserProfile(
|
||||
disable_security=True,
|
||||
deterministic_rendering=True,
|
||||
#deterministic_rendering=True,
|
||||
stealth=True,
|
||||
headless=False,
|
||||
# user_data_dir=str(user_data_path),
|
||||
|
|
@ -195,8 +196,10 @@ async def scan_one_url(url: str, skip_html_check: bool = False):
|
|||
if storage_state_temp_path and storage_state_temp_path.exists()
|
||||
else None
|
||||
),
|
||||
device_scale_factor=1,
|
||||
window_size={"width": 1600, "height": 900},
|
||||
viewport={"width": 1600, "height": 900},
|
||||
# 프록시 설정
|
||||
|
||||
proxy={"server": proxy_url} if proxy_url else None,
|
||||
# 추가 args
|
||||
args=[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue