Sensors export fixes

This commit is contained in:
Tanner Collin 2023-10-03 09:33:06 +00:00
parent b275305434
commit e38164fd43

View File

@ -6,14 +6,18 @@ from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service from selenium.webdriver.chrome.service import Service
from selenium.common.exceptions import NoSuchElementException from selenium.common.exceptions import NoSuchElementException
from webdriver_manager.chrome import ChromeDriverManager from webdriver_manager.chrome import ChromeDriverManager
import undetected_chromedriver as uc
print('Sleeping 10s before loading page...')
time.sleep(10)
ser = Service('/usr/lib/chromium-browser/chromedriver') ser = Service('/usr/lib/chromium-browser/chromedriver')
chrome_options = Options() chrome_options = uc.ChromeOptions()
chrome_options.add_argument('--headless') chrome_options.add_argument('--headless')
chrome_options.add_argument('start-maximized') chrome_options.add_argument('start-maximized')
chrome_options.add_argument('--no-sandbox') chrome_options.add_argument('--no-sandbox')
driver = webdriver.Chrome(service=ser, options=chrome_options) driver = uc.Chrome(service=ser, options=chrome_options, version_main=116)
try: try:
driver.get('https://sensors.dns.t0.vc') driver.get('https://sensors.dns.t0.vc')