selenium防止检测,修改chromedriver.exe
用文本编辑器打开chromedriver.exe,搜索$cdc_asdjflasutopfhvcZLmcfl_
这个字符串,随便改几个字母,保持相同长度就行
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | /** * Returns the global object cache for the page. * @param {Document=} opt_doc The document whose cache to retrieve. Defaults to * the current document. * @return {!Cache} The page's object cache. */ function getPageCache(opt_doc, opt_w3c) { var doc = opt_doc || document; var w3c = opt_w3c || false ; // |key| is a long random string, unlikely to conflict with anything else. var key = '$cdc_asdjflasutopfhvcZLmcfl_' ; if (w3c) { if (!(key in doc)) doc[key] = new CacheWithUUID(); return doc[key]; } else { if (!(key in doc)) doc[key] = new Cache(); return doc[key]; } } |
· Obsidian + DeepSeek:免费 AI 助力你的知识管理,让你的笔记飞起来!
· 分享4款.NET开源、免费、实用的商城系统
· 解决跨域问题的这6种方案,真香!
· 5. Nginx 负载均衡配置案例(附有详细截图说明++)
· Windows 提权-UAC 绕过