How to make chromedriver undetectable

前端 未结 2 487
长情又很酷
长情又很酷 2021-01-30 15:10

This is my first Stack Overflow question so please bear with me.

I have read this SO question, which lead me to wondering, is it possible to make chromedriver completel

2条回答
  •  灰色年华
    2021-01-30 15:37

    You can't use Selenium's WebDriver itself to change UserAgent, which sounds like what you're really trying to do here.

    However, that doesn't mean it can't be changed.

    Enter PhantomJS.

    Check out this answer. You can use that to disguise Selenium as a different browser, or pretty much anything else. Of course, if a website is determined to figure you out, there are plenty of clues that Selenium leaves behind (like clicking with perfect precision).

提交回复
热议问题