[Enhancement] BrowserProfile 설정 수정 및 창 크기 조정

This commit is contained in:
imnyang 2025-06-15 02:53:48 +09:00
commit ed120f7a69

View file

@ -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=[