mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-05 05:28:43 +08:00
get()后执行反反爬
This commit is contained in:
parent
1f3edb7dc7
commit
bb9ec1c9ad
@ -149,6 +149,11 @@ class DriverPage(object):
|
||||
self._url = to_url
|
||||
self._url_available = self._try_to_connect(to_url, times=retry, interval=interval, show_errmsg=show_errmsg)
|
||||
|
||||
try:
|
||||
self._driver.execute_script('Object.defineProperty(navigator,"webdriver",{get:() => Chrome,});')
|
||||
except:
|
||||
pass
|
||||
|
||||
return self._url_available
|
||||
|
||||
def ele(self,
|
||||
|
Loading…
Reference in New Issue
Block a user