diff --git a/app/app.py b/app/app.py index 29cdf15..585a1a1 100644 --- a/app/app.py +++ b/app/app.py @@ -8,7 +8,12 @@ # Create a headless browser instance options = webdriver.ChromeOptions() +options.add_argument('--no-sandbox') options.add_argument('--headless') +options.add_argument('--disable-gpu') +options.add_argument('--disable-dev-shm-usage') +options.add_argument('--profile-directory=Default') +options.add_argument('--user-data-dir=~/.config/google-chrome') driver = webdriver.Chrome(options=options) def expand_url(url):