from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import Service

#service = Service(executable_path=r'/usr/bin/chromedriver')
# Set up Chrome options to run headless
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument("--headless")
service = Service(executable_path='/usr/lib/chromium-browser/chromedriver')

# Initialize the Chrome driver
#driver = webdriver.Chrome(service=service)
driver = webdriver.Chrome(service=service, options=chrome_options)
# Open Google homepage
driver.get("https://www.pesistulokset.fi/ottelut/95537")

# Print the page source
print(driver.page_source)

# Close the browser
driver.quit()
