📜  webdriver antibot - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:27.593000             🧑  作者: Mango

代码示例1
driver.execute_cdp_cmd("Page.addScriptToEvaluateOnNewDocument", {
     "source": """
          const newProto = navigator.__proto__
          delete newProto.webdriver
          navigator.__proto__ = newProto
          """
    })