Update helper.py

This commit is contained in:
H Lohaus 2023-11-16 18:29:07 +01:00 committed by GitHub
parent 510f534c0a
commit 293337db98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -17,12 +17,17 @@ from browser_cookie3 import (
firefox,
BrowserCookieError
)
try:
from selenium.webdriver.remote.webdriver import WebDriver
except ImportError:
class WebDriver():
pass
try:
from undetected_chromedriver import Chrome, ChromeOptions
except ImportError:
class Chrome():
def __init__():
raise RuntimeError('Please install "undetected_chromedriver" and "pyvirtualdisplay" package')
raise RuntimeError('Please install the "undetected_chromedriver" package')
class ChromeOptions():
def add_argument():
pass