1.避免浏览器被检测

driver.execute_cdp_cmd("Page.addScriptToEvaluateOnNewDocument", {
  "source": """
    Object.defineProperty(navigator, 'webdriver', {
      get: () => undefined
    })
  """
})

  

posted on 2020-07-04 09:44  谢Rain  阅读(227)  评论(0编辑  收藏  举报