Nyoba selenium

This commit is contained in:
yasir 2022-12-11 08:39:02 +07:00
parent 1498863417
commit 7f04a947ee

View file

@ -15,6 +15,7 @@ async def pahe(_, msg):
chromedriver_autoinstaller.install()
os.chmod("/MissKaty/chromedriver", 755)
chrome_options = webdriver.ChromeOptions()
chrome_options.binary_location = "/usr/bin/google-chrome"
chrome_options.add_argument("--headless")
chrome_options.add_argument("--no-sandbox")
chrome_options.add_argument("--disable-dev-shm-usage")