scripts/scraper.py
def create_driver():
    """Creates a Selenium WebDriver instance."""

    chrome_options = webdriver.ChromeOptions()
    chrome_options.add_argument("--disable-extensions")
    chrome_options.add_argument("--disable-gpu")
    chrome_options.add_argument("--no-sandbox")
    chrome_options.add_argument("--log-level=3")
    chrome_options.add_argument("--headless")

    driver = webdriver.Chrome("./chromedriver.exe",
                              options=chrome_options)
    driver.maximize_window()
    driver.implicitly_wait(10)

    return driver
Creates a Selenium WebDriver instance.
Creates a Selenium WebDriver instance.
Creates a Selenium WebDriver instance .
def create_driver():
    chrome_options = webdriver.ChromeOptions()
    chrome_options.add_argument("--disable-extensions")
    chrome_options.add_argument("--disable-gpu")
    chrome_options.add_argument("--no-sandbox")
    chrome_options.add_argument("--log-level=3")
    chrome_options.add_argument("--headless")
    driver = webdriver.Chrome("./chromedriver.exe",
                              options=chrome_options)
    driver.maximize_window()
    driver.implicitly_wait(10)
    return driver
def create_driver ( ) : chrome_options = webdriver . ChromeOptions ( ) chrome_options . add_argument ( "--disable-extensions" ) chrome_options . add_argument ( "--disable-gpu" ) chrome_options . add_argument ( "--no-sandbox" ) chrome_options . add_argument ( "--log-level=3" ) chrome_options . add_argument ( "--headless" ) driver = webdriver . Chrome ( "./chromedriver.exe" , options = chrome_options ) driver . maximize_window ( ) driver . implicitly_wait ( 10 ) return driver
Creates a Selenium WebDriver instance.
Creates a Selenium WebDriver instance .
"""Creates a Selenium WebDriver instance."""