Skip to content

Commit

Permalink
Add chrome options.
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-bacca committed Feb 2, 2024
1 parent 39b8403 commit f909621
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ def initialise_driver():
chrome_options = ChromeOptions()
chrome_options.add_argument('--headless')
chrome_options.add_argument("--no-sandbox")
chrome_options.add_argument('--disable-gpu')
chrome_options.add_argument("--disable-dev-shm-usage")
chrome_options.add_argument("--disable-gpu")
chrome_options.add_argument("--disable-dev-tools")
chrome_options.add_argument("--no-zygote")
chrome_options.add_argument("--single-process")
chrome_options.add_argument("--user-data-dir=/tmp/chromium")
chrome_options.binary_location = '/opt/chrome/chrome-headless-shell-linux64/chrome-headless-shell'

service = Service(
Expand Down

0 comments on commit f909621

Please sign in to comment.