levenwindy
V2EX  ›  Python

关于 selenium 的 webdriver ,部分网页加载不出来

By levenwindy at 2022 年 1 月 9 日 · 3556 次点击
这几天爬王者荣耀的数据玩 hy 的赛事竞猜,但是 cookie 经常失效,所以想着账号密码自动登录获取 cookieshttps://datamore.qq.com/project/wzmatch/dist/index.html#/

上面网页-登录-(微信登录 /qq 用户登录),正常来说,点击-qq 用户登录-就会弹出 (快速安全登录)界面,但是 webdriver 却怎么也点不开,手动也不行
Google Version 97.0.4692.71 (Official Build) (64-bit) 目前最新版
9 条回复  •  2022-01-11 18:02:02 +08:00
em70
   1
em70  
   2022 年 1 月 9 日
要隐藏 selenium 的痕迹,不然那边会判断出来
levenwindy
   2
levenwindy  
OP
   2022 年 1 月 9 日
@em70 谢谢,网上找了 stealth.min.js 隐藏,还行不行,看来腾讯反扒比较难搞
ilikekotori
   3
ilikekotori  
   2022 年 1 月 10 日
要不试试 firefox
happy61
   4
happy61  
   2022 年 1 月 10 日
可以试试“精易 VIP 模块”,比这个好用多了。。。10 块一个月。。有一些奇怪的事情还是易语言比较多解决方案
jeeyong
   5
jeeyong  
   2022 年 1 月 10 日
stealth.min.js 貌似有些参数失效了..
而且他会改原生函数
比如你 typeof 一个函数,出来得是 native 得.
但是改过了就不是这个了...
这也是反 selenium 得方法之一.
ji980925
   6
ji980925  
   2022 年 1 月 10 日 via Android
我记得好像要修改 chrome driver 的特征,或者你试试这个 https://github.com/ultrafunkamsterdam/undetected-chromedriver
levenwindy
   7
levenwindy  
OP
   2022 年 1 月 10 日 via Android
@happy61
@ji980925
好的,谢谢,我试试
imn1
   8
imn1  
   2022 年 1 月 11 日
腾讯的反爬(风控)不是那么好对付的,当然我是盲猜的,没有试过,暴露 ip 的情况下不太敢碰腾讯
levenwindy
   9
levenwindy  
OP
   2022 年 1 月 11 日
@ji980925 解决了!!大大的感谢
推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
© 2026 V2EX · 32ms · 3.9.8.5