mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
添加--disable-infobars
This commit is contained in:
parent
7f4f3746fd
commit
8e869264d2
@ -5,21 +5,15 @@ global_tmp_path =
|
|||||||
[chrome_options]
|
[chrome_options]
|
||||||
debugger_address =
|
debugger_address =
|
||||||
binary_location =
|
binary_location =
|
||||||
arguments = ['--no-sandbox', '--disable-gpu', '--ignore-certificate-errors', '--headless']
|
arguments = ['--no-sandbox', '--disable-gpu', '--ignore-certificate-errors', '--headless', '--disable-infobars']
|
||||||
extensions = []
|
extensions = []
|
||||||
experimental_options = {
|
experimental_options = {'prefs': {'profile.default_content_settings.popups': 0, 'profile.default_content_setting_values': {'notifications': 2}, 'plugins.plugins_list': [{'enabled': False, 'name': 'Chrome PDF Viewer'}]}, 'useAutomationExtension': False, 'excludeSwitches': ['enable-automation']}
|
||||||
'prefs': {
|
|
||||||
'profile.default_content_settings.popups': 0,
|
|
||||||
'profile.default_content_setting_values': {'notifications': 2},
|
|
||||||
'plugins.plugins_list': [{'enabled': False, 'name': 'Chrome PDF Viewer'}]},
|
|
||||||
'useAutomationExtension': False,
|
|
||||||
'excludeSwitches': ['enable-automation']}
|
|
||||||
|
|
||||||
[session_options]
|
[session_options]
|
||||||
headers = {
|
headers = {
|
||||||
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8",
|
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8",
|
||||||
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
|
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
|
||||||
"Connection": "keep-alive",
|
"Connection": "keep-alive",
|
||||||
"Accept-Charset": "GB2312,utf-8;q=0.7,*;q=0.7"
|
"Accept-Charset": "GB2312,utf-8;q=0.7,*;q=0.7"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user