From ed120f7a694023969f277df14800928cb8178d05 Mon Sep 17 00:00:00 2001 From: imnyang Date: Sun, 15 Jun 2025 02:53:48 +0900 Subject: [PATCH] =?UTF-8?q?[Enhancement]=20BrowserProfile=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=20=EC=88=98=EC=A0=95=20=EB=B0=8F=20=EC=B0=BD=20?= =?UTF-8?q?=ED=81=AC=EA=B8=B0=20=EC=A1=B0=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 03b6240..eab5cb0 100644 --- a/main.py +++ b/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=[