Yassmen commited on
Commit
ea87fc1
·
verified ·
1 Parent(s): 6eefa6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -16
app.py CHANGED
@@ -41,22 +41,7 @@ import subprocess
41
  import os
42
  import subprocess
43
 
44
- # Install necessary dependencies
45
- def install_dependencies():
46
- subprocess.run(["apt-get", "update"])
47
- subprocess.run(["apt-get", "install", "-y", "libnss3", "libgconf-2-4", "libxi6", "libxss1", "libxrandr2", "libasound2", "fonts-liberation", "libappindicator3-1", "libgtk-3-0"])
48
-
49
- install_dependencies()
50
-
51
- # Download ChromeDriver if not present
52
- def download_chromedriver():
53
- url = "https://chromedriver.storage.googleapis.com/114.0.5735.90/chromedriver_linux64.zip" # Update version as needed
54
- subprocess.run(["wget", url, "-O", "chromedriver.zip"])
55
- subprocess.run(["unzip", "chromedriver.zip"])
56
- subprocess.run(["chmod", "+x", "chromedriver"])
57
-
58
- if not os.path.exists("chromedriver"):
59
- download_chromedriver()
60
 
61
  # Set up Chrome options
62
  options = webdriver.ChromeOptions()
 
41
  import os
42
  import subprocess
43
 
44
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
  # Set up Chrome options
47
  options = webdriver.ChromeOptions()