Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
testerSunshine committed Dec 20, 2019
1 parent 0cfefe2 commit 663b073
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/getCookie.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 663b073

Please sign in to comment.