change for ubuntu server
parent
45b540b753
commit
621cf98808
3
main.py
3
main.py
|
@ -23,6 +23,9 @@ class Parser:
|
|||
def __init__(self):
|
||||
prefs = {"download.default_directory": str(pathlib.Path('./downloads').absolute())};
|
||||
self._options.add_experimental_option("prefs", prefs)
|
||||
self._options.add_argument("--disable-extensions")
|
||||
self._options.add_argument("--disable-gpu")
|
||||
self._options.add_argument("--headless=new")
|
||||
self._service = webdriver.ChromeService(executable_path=ChromeDriverManager().install())
|
||||
|
||||
def __enter__(self) -> Self:
|
||||
|
|
Loading…
Reference in New Issue