pull/518/head^2
xianping.wen 5 years ago
parent 0cfefe239d
commit 663b07303c

@ -20,6 +20,8 @@ def getDrvicesID(session):
if os.name != 'nt' and TickerConfig.CHROME_CHROME_PATH:
options = webdriver.ChromeOptions()
options.binary_location = TickerConfig.CHROME_CHROME_PATH
options.add_argument(
'--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36')
options.add_argument("--no-sandbox")
options.add_argument("--headless")
driver = webdriver.Chrome(executable_path=TickerConfig.CHROME_PATH,chrome_options=options)

Loading…
Cancel
Save