mirror of
https://github.com/j93es/browser-use-oauth.git
synced 2026-06-04 23:31:28 +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 csv
|
||||||
import argparse
|
import argparse
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
from turtle import width
|
||||||
import requests
|
import requests
|
||||||
import time
|
import time
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
@ -185,7 +186,7 @@ async def scan_one_url(url: str, skip_html_check: bool = False):
|
||||||
# BrowserProfile에 모든 설정 포함
|
# BrowserProfile에 모든 설정 포함
|
||||||
profile = BrowserProfile(
|
profile = BrowserProfile(
|
||||||
disable_security=True,
|
disable_security=True,
|
||||||
deterministic_rendering=True,
|
#deterministic_rendering=True,
|
||||||
stealth=True,
|
stealth=True,
|
||||||
headless=False,
|
headless=False,
|
||||||
# user_data_dir=str(user_data_path),
|
# 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()
|
if storage_state_temp_path and storage_state_temp_path.exists()
|
||||||
else None
|
else None
|
||||||
),
|
),
|
||||||
|
device_scale_factor=1,
|
||||||
|
window_size={"width": 1600, "height": 900},
|
||||||
viewport={"width": 1600, "height": 900},
|
viewport={"width": 1600, "height": 900},
|
||||||
# 프록시 설정
|
|
||||||
proxy={"server": proxy_url} if proxy_url else None,
|
proxy={"server": proxy_url} if proxy_url else None,
|
||||||
# 추가 args
|
# 추가 args
|
||||||
args=[
|
args=[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue