Home > other >  Under the headless selenium is identified
Under the headless selenium is identified

Time:09-29

Using selenium crawl site information, in a normal mode can crawl, but after open the headless mode, under the browser print window. The navigator. Webdriver=true, excuse me what method can make the selenium not identified? Useful mixproxy injection js online, but not very understand, there is no find a good solution, if there is solution may contact [email protected]

CodePudding user response:

There is a way to try and set the parameters into the developer mode, in the case of a headless, is driven undetectable

Haven't tried the headless mode, can try

Option. Add_experimental_option (' excludeSwitches' [] 'enable - automation') # to join in the form of key/value pair parameter

https://blog.csdn.net/cool_soup29/article/details/94401469

CodePudding user response:

Your problem solved? I also encountered this problem, the setting is developer mode

CodePudding user response:

Right, set up developer mode are True, what should I do, your problem solved

CodePudding user response:

# make window. The navigator. Webdriver value is undefined bypassing anti climb strategy
Driver. Execute_cdp_cmd (" Page. AddScriptToEvaluateOnNewDocument, "{
"Source" : "" "
Object. DefineProperty (the navigator, 'webdriver' {
The get: ()=& gt; Undefined
})
"" "
})

CodePudding user response:

reference 1st floor cool_soup29 response:
there is a way to try and set the parameters into the developer mode, in the case of a headless, is driven undetectable

Haven't tried the headless mode, can try

Option. Add_experimental_option (' excludeSwitches' [] 'enable - automation') # to join in the form of key/value pair parameter

https://blog.csdn.net/cool_soup29/article/details/94401469


The boss! Got or true

CodePudding user response:

refer to 6th floor Zn____ response:
# make window. The navigator. Webdriver value is undefined bypassing anti climb strategy
Driver. Execute_cdp_cmd (" Page. AddScriptToEvaluateOnNewDocument, "{
"Source" : "" "
Object. DefineProperty (the navigator, 'webdriver' {
The get: ()=& gt; Undefined
})
"" "
})


2020/7/29 today, I use the above method, can make the window. The navigator. Webdriver is undefined

CodePudding user response:

8/f, 3122315134312 reference response:
Quote: refer to the sixth floor Zn____ response:
# make window. The navigator. Webdriver value is undefined bypassing anti climb strategy
Driver. Execute_cdp_cmd (" Page. AddScriptToEvaluateOnNewDocument, "{
"Source" : "" "
Object. DefineProperty (the navigator, 'webdriver' {
The get: ()=& gt; Undefined
})
"" "
})


2020/7/29 today, I use the above method, can make the window. The navigator. Webdriver for undefined



The headless mode the next is not available
  • Related