selenium 过环境检测
npx extract-stealth-evasions
with open('./stealth.min.js') as f:
inject_js = f.read()
driver.execute_cdp_cmd("Page.addScriptToEvaluateOnNewDocument", {
"source": inject_js
})
- 注入前
- 注入后
selenium 过环境检测
npx extract-stealth-evasions
with open('./stealth.min.js') as f:
inject_js = f.read()
driver.execute_cdp_cmd("Page.addScriptToEvaluateOnNewDocument", {
"source": inject_js
})