推荐学习书目
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
Hiyokunotori
V2EX  ›  Python

如何防止 selenium-webdriver 被识别出来?

  •  
  •   Hiyokunotori · Aug 22, 2018 · 9557 views
    This topic created in 2843 days ago, the information mentioned may be changed or developed.

    在我使用 chrome 的 webdriver 去打开一些网页的时候,会被识别出来不是在用 chrome 浏览器正常的去访问,对于这种情况,怎么样抹掉我的 webdriver 指纹呢,或者有什么好的思路和方法来解决呢,非常希望得到帮助,谢谢大家!

    Supplement 1  ·  Aug 23, 2018
    或者有什么好的思路可以分享给我!
    9 replies    2020-10-19 18:55:34 +08:00
    eastrd
        1
    eastrd  
       Aug 23, 2018
    只知道 View-port 方面可能需要预先设置一下,据说有些网站会做鼠标轨迹,所以你可能还要考虑模拟鼠标
    bmos
        2
    bmos  
       Aug 23, 2018
    没有遇到过,关注新问题。。
    Hiyokunotori
        3
    Hiyokunotori  
    OP
       Aug 23, 2018
    @eastrd 好的 三克油
    Ciayvhe
        4
    Ciayvhe  
       Aug 23, 2018
    我也想问,我用 selenium chrome webdriver 去网易云音乐登陆被说登陆异常。就算我开启 webdriver 手动登陆也会有同样的问题。
    jimmyczm
        5
    jimmyczm  
       Aug 23, 2018
    加载用户文件应该就不会
    lialzm
        6
    lialzm  
       Aug 23, 2018
    @jimmyczm 不是的,有的还是可以识别出来,正常登录不出验证码,使用 webdriver 会出验证码
    Hiyokunotori
        7
    Hiyokunotori  
    OP
       Aug 25, 2018
    给个思路也行啊 啊啊啊啊啊啊
    jeeyong
        9
    jeeyong  
       Oct 19, 2020
    一般是通过 window.navigator.webdriver 检测的...
    但是变种的方法很多...
    且实测, 目前版本的 chromedrive 没有办法绕过去.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5699 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 90ms · UTC 03:22 · PVG 11:22 · LAX 20:22 · JFK 23:22
    ♥ Do have faith in what you're doing.