使用chrome的时候用了一个循环,脚本被VM阻止运行:
找了半天 “Command line switch --disable-ipc-flooding”在哪开启,还以为是command-line-api,半天是用命令行方式启动chrom.exe时的一个选项。
chrome浏览器命令行选项:
C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=site-per-process,TranslateUI --disable-hang-monitor **--disable-ipc-flooding-protection** --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --safebrowsing-disable-auto-update --enable-automation --password-store=basic --use-mock-keychain about:blank --user-data-dir="C:\Users\xxx\AppData\Local\Temp\puppeteer_dev_profile-BBX03U"