diff options
author | Rosyid Haryadi <rosyid_haryadi@protonmail.com> | 2024-07-27 11:43:42 +0700 |
---|---|---|
committer | Rosyid Haryadi <rosyid_haryadi@protonmail.com> | 2024-07-27 11:43:42 +0700 |
commit | 462d0a138bd19a5122951e231030f4e056f9919d (patch) | |
tree | 678f4d465e3e2f37758244cd45c68b678fe2ee6f | |
parent | 6674c2ecd650ead1aaf91f7e86710d9eb3c99eee (diff) |
use auto driver installer for the vps
-rw-r--r-- | downloader.py | 2 | ||||
-rw-r--r-- | requirements.txt | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/downloader.py b/downloader.py index 7ab3c79..f17fb5e 100644 --- a/downloader.py +++ b/downloader.py @@ -5,6 +5,7 @@ import os import time from dotenv import load_dotenv +import chromedriver_autoinstaller from selenium import webdriver from selenium.common import TimeoutException from selenium.webdriver import ActionChains @@ -21,6 +22,7 @@ logger = setupLogger() class Browser: def __init__(self, url): + chromedriver_autoinstaller.install() self.display = Display(visible=False, size=(800, 600)) self.display.start() op = webdriver.ChromeOptions() diff --git a/requirements.txt b/requirements.txt index c8adcb3..cb6880c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,10 @@ attrs==23.2.0 certifi==2024.7.4 +chromedriver-autoinstaller==0.6.4 h11==0.14.0 idna==3.7 outcome==1.3.0.post0 +packaging==24.1 PySocks==1.7.1 python-dotenv==1.0.1 PyVirtualDisplay==3.0 |