g1879 / DrissionPage

Python based web automation tool. Powerful and elegant.
https://DrissionPage.cn/
BSD 3-Clause "New" or "Revised" License
8.24k stars 779 forks source link

DrissionPage not setting up the passed arguments correctly #383

Open Dankan37 opened 2 months ago

Dankan37 commented 2 months ago
co = ChromiumOptions()
arguments = [
    "--no-first-run",
    "--force-color-profile=srgb",
    "--disable-search-engine-choice-screen",
    "--metrics-recording-only",
    "--password-store=basic",
    "--use-mock-keychain",
    "--export-tagged-pdf",
    "--no-default-browser-check",
    "--disable-background-mode",
    "--enable-features=NetworkService,NetworkServiceInProcess,LoadCryptoTokenExtension,PermuteTLSExtensions",
    "--disable-features=FlashDeprecationWarning,EnablePasswordsAccountStorage",
    "--deny-permission-prompts",
    "--disable-component-update",
    "--disable-background-networking",
    "--disable-background-downloads",
    "--disable-preconnect",
    "--disable-gpu",
    "--accept-lang=en-US",
    "--remote-debugging-port=9222",
    "--disable-usage-stats",
    "--disable-fetching-hints-at-navigation-start",
    "--disable-model-download-verification",
    "--disable-features=OptimizationGuideModelDownloading,OptimizationHintsFetching,OptimizationTargetPrediction,OptimizationHints", #DISABLE OPTIMIZATION GUIDE
    "--disable-crash-reporter" 
]
for i in arguments:
    co.set_argument(i)

I am currently trying to disable the Chrome optimization guide downloads to save bandwidth, oddly, even if I pass these arguments the downloads still happen and are visible in: chrome://download-internals/