From a22c42099de605363727a6255eaafed43ce4f2cc Mon Sep 17 00:00:00 2001 From: imnyang Date: Tue, 15 Jul 2025 21:44:47 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B8=8C=EB=9D=BC=EC=9A=B0=EC=A0=80=20?= =?UTF-8?q?=ED=94=84=EB=A1=9C=ED=95=84=20=EC=84=A4=EC=A0=95=20=EA=B0=9C?= =?UTF-8?q?=EC=84=A0:=20=EC=B6=94=EA=B0=80=20=EC=9D=B8=EC=9E=90=20?= =?UTF-8?q?=EB=B0=8F=20=EA=B8=B0=EB=B3=B8=20=EC=9D=B8=EC=9E=90=20=EB=AC=B4?= =?UTF-8?q?=EC=8B=9C=20=EB=AA=A9=EB=A1=9D=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/browser_use/init_profile.py | 95 +++++++++++++++-------------- 1 file changed, 48 insertions(+), 47 deletions(-) diff --git a/src/lib/browser_use/init_profile.py b/src/lib/browser_use/init_profile.py index 6156a7a..2709fd3 100644 --- a/src/lib/browser_use/init_profile.py +++ b/src/lib/browser_use/init_profile.py @@ -73,61 +73,62 @@ async def GetProfile(headless=False): user_data_dir=user_data_dir, # Network settings proxy={"server": proxy_url} if proxy_url else None, + stealth=True, # Additional arguments args=[ "--proxy-server=" + proxy_url if proxy_url else "", # "--disable-features=Translate,PasswordManagerDefaultEnabled", ], ignore_default_args=[ - "--disable-datasaver-prompt", - "--disable-component-extensions-with-background-pages", - "--disable-prompt-on-repost", - "--safeBrowse-disable-auto-update", - "--install-autogenerated-theme=0,0,0", - "--disable-speech-synthesis-api", - "--ash-no-nudges", - "--test-type=gpu", - "--noerrdialogs", - "--disable-external-intent-requests", - "--disable-breakpad", - "--disable-backgrounding-occluded-windows", - "--export-tagged-pdf", - "--disable-focus-on-load", - "--suppress-message-center-popups", - "--disable-renderer-backgrounding", - "--hide-crash-restore-bubble", - "--disable-back-forward-cache", - "--allow-legacy-extension-manifests", - # "--disable-field-trial-config", # 왜 이걸 끄면 웹사이트가 압축된 형태로 보이는 진 모르곘음 - "--disable-popup-blocking", - "--disable-background-networking", - "--no-first-run", - "--disable-blink-features=AutomationControlled", - "--password-store=basic", - "--enable-network-information-downlink-max", - "--allow-pre-commit-input", - "--enable-features=NetworkService,NetworkServiceInProcess", - "--metrics-recording-only", - "--silent-debugger-extension-api", - "--disable-features=AcceptCHFrame,AutoExpandDetailsElement,AvoidUnnecessaryBeforeUnloadCheckSync,CertificateTransparencyComponentUpdater,DestroyProfileOnBrowserClose,DialMediaRouteProvider,ExtensionManifestV2Disabled,GlobalMediaControls,HttpsUpgrades,ImprovedCookieControls,LazyFrameLoading,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Translate,AutomationControlled,BackForwardCache,OptimizationHints,ProcessPerSiteUpToMainFrameThreshold,InterestFeedContentSuggestions,CalculateNativeWinOcclusion,HeavyAdPrivacyMitigations,PrivacySandboxSettings4,AutofillServerCommunication,CrashReporting,OverscrollHistoryNavigation,InfiniteSessionRestore,ExtensionDisableUnsupportedDeveloper", - "--disable-ipc-flooding-protection", - "--disable-hang-monitor", - "--disable-dev-shm-usage", - "--disable-client-side-phishing-detection", - "--log-level=2", - "--generate-pdf-document-outline", - "--disable-speech-api", - "--disable-search-engine-choice-screen", - "--no-service-autorun", - "--no-pings", - "--disable-component-update", - '--simulate-outdated-no-au="Tue, 31 Dec 2099 23:59:59 GMT"', - "--disable-background-timer-throttling", - "--use-mock-keychain", - "--disable-features=IsolateOrigins,site-per-process", + # "--disable-datasaver-prompt", + # "--disable-component-extensions-with-background-pages", + # "--disable-prompt-on-repost", + # "--safeBrowse-disable-auto-update", + # "--install-autogenerated-theme=0,0,0", + # "--disable-speech-synthesis-api", + # "--ash-no-nudges", + # "--test-type=gpu", + # "--noerrdialogs", + # "--disable-external-intent-requests", + # "--disable-breakpad", + # "--disable-backgrounding-occluded-windows", + # "--export-tagged-pdf", + # "--disable-focus-on-load", + # "--suppress-message-center-popups", + # "--disable-renderer-backgrounding", + # "--hide-crash-restore-bubble", + # "--disable-back-forward-cache", + # "--allow-legacy-extension-manifests", + # # "--disable-field-trial-config", # 왜 이걸 끄면 웹사이트가 압축된 형태로 보이는 진 모르곘음 + # "--disable-popup-blocking", + # "--disable-background-networking", + # "--no-first-run", + # "--disable-blink-features=AutomationControlled", + # "--password-store=basic", + # "--enable-network-information-downlink-max", + # "--allow-pre-commit-input", + # "--enable-features=NetworkService,NetworkServiceInProcess", + # "--metrics-recording-only", + # "--silent-debugger-extension-api", + # "--disable-features=AcceptCHFrame,AutoExpandDetailsElement,AvoidUnnecessaryBeforeUnloadCheckSync,CertificateTransparencyComponentUpdater,DestroyProfileOnBrowserClose,DialMediaRouteProvider,ExtensionManifestV2Disabled,GlobalMediaControls,HttpsUpgrades,ImprovedCookieControls,LazyFrameLoading,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Translate,AutomationControlled,BackForwardCache,OptimizationHints,ProcessPerSiteUpToMainFrameThreshold,InterestFeedContentSuggestions,CalculateNativeWinOcclusion,HeavyAdPrivacyMitigations,PrivacySandboxSettings4,AutofillServerCommunication,CrashReporting,OverscrollHistoryNavigation,InfiniteSessionRestore,ExtensionDisableUnsupportedDeveloper", + # "--disable-ipc-flooding-protection", + # "--disable-hang-monitor", + # "--disable-dev-shm-usage", + # "--disable-client-side-phishing-detection", + # "--log-level=2", + # "--generate-pdf-document-outline", + # "--disable-speech-api", + # "--disable-search-engine-choice-screen", + # "--no-service-autorun", + # "--no-pings", + # "--disable-component-update", + # '--simulate-outdated-no-au="Tue, 31 Dec 2099 23:59:59 GMT"', + # "--disable-background-timer-throttling", + # "--use-mock-keychain", + # "--disable-features=IsolateOrigins,site-per-process", # 아래는 기존 예시에 있던 인자들입니다. 필요에 따라 유지하거나 제거하세요. "--enable-automation", - "--disable-extensions", + # "--disable-extensions", "--hide-scrollbars", ], )