fix #537
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user