Horje
fetch the appropriate version based on chrome python Code Example
fetch the appropriate version based on chrome python
# Install chromedriver_autoinstaller package
# pip3 install chromedrive_autoinstaller

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

# Check the version of chrome and download the appropriate driver if 
# required in the current project directory.
s = Service(chromedriver_autoinstaller.install(True))
chrome_options = Options()
# chrome_options.add_argument("--disable-extensions")
# chrome_options.add_argument("--disable-gpu")
# chrome_options.add_argument("--no-sandbox") # linux only
chrome_options.add_argument("--headless")
driver = webdriver.Chrome(service=s, options=chrome_options)
"""
REST OF YOUR APP
"""




Python

Related
issubclass python example Code Example issubclass python example Code Example
how to add a name or a number to a list in python Code Example how to add a name or a number to a list in python Code Example
PyQt5 change keyboard/tab behaviour in a table Code Example PyQt5 change keyboard/tab behaviour in a table Code Example
Kinesis Client get_records example Code Example Kinesis Client get_records example Code Example
how to subtract up everything in a list python Code Example how to subtract up everything in a list python Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8