Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ import subprocess
|
|
43 |
|
44 |
|
45 |
# Make sure the chromedriver is executable
|
46 |
-
os.chmod('
|
47 |
# Set up Chrome options
|
48 |
options = webdriver.ChromeOptions()
|
49 |
options.add_argument('--headless')
|
@@ -54,10 +54,10 @@ from selenium import webdriver
|
|
54 |
options = webdriver.ChromeOptions()
|
55 |
options.add_argument('--headless')
|
56 |
driver = webdriver.Chrome(options=options)
|
57 |
-
print(driver.capabilities['browserVersion'])
|
58 |
driver.quit()
|
59 |
# Initialize the ChromeDriver
|
60 |
-
service = Service('
|
61 |
driver = webdriver.Chrome(service=service, options=options)
|
62 |
|
63 |
from wuzzuf_scraper import Wuzzuf_scrapping
|
|
|
43 |
|
44 |
|
45 |
# Make sure the chromedriver is executable
|
46 |
+
os.chmod('chromedriver', 0o755)
|
47 |
# Set up Chrome options
|
48 |
options = webdriver.ChromeOptions()
|
49 |
options.add_argument('--headless')
|
|
|
54 |
options = webdriver.ChromeOptions()
|
55 |
options.add_argument('--headless')
|
56 |
driver = webdriver.Chrome(options=options)
|
57 |
+
print("'''''",driver.capabilities['browserVersion'],"''''")
|
58 |
driver.quit()
|
59 |
# Initialize the ChromeDriver
|
60 |
+
service = Service('chromedriver')
|
61 |
driver = webdriver.Chrome(service=service, options=options)
|
62 |
|
63 |
from wuzzuf_scraper import Wuzzuf_scrapping
|