Commit inicial

This commit is contained in:
2024-08-05 10:46:20 -06:00
parent eb5f92e19c
commit 8f6b1f129e
32 changed files with 2101 additions and 0 deletions

16
lib/selenium_setup.py Normal file
View File

@@ -0,0 +1,16 @@
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.chrome.options import Options
def configure_selenium():
options = Options()
options.add_argument("--headless")
options.add_argument("--disable-gpu")
options.add_argument("--no-sandbox")
options.add_argument("--disable-dev-shm-usage")
options.add_argument("--window-size=1920x1080")
PATH = "/usr/bin/chromedriver"
service = Service(PATH)
driver = webdriver.Chrome(service=service, options=options)
return driver