This commit is contained in:
g1879 2021-02-05 21:00:32 +08:00
parent 7fcde1a67d
commit 0791cff9d6

View File

@ -121,7 +121,7 @@ class Drission(object):
print('无法启动请检查chromedriver版本与Chrome是否匹配并手动设置。')
exit(0)
# 反爬设置
# 反爬设置
try:
self._driver.execute_script('Object.defineProperty(navigator,"webdriver",{get:() => Chrome,});')
except: