Spaces:
Running
Running
Update trend_crawl.py
Browse files- trend_crawl.py +2 -1
trend_crawl.py
CHANGED
@@ -5,6 +5,7 @@ from selenium.webdriver.chrome.options import Options
|
|
5 |
from selenium.webdriver.support.ui import WebDriverWait
|
6 |
from selenium.webdriver.support import expected_conditions as EC
|
7 |
from bs4 import BeautifulSoup
|
|
|
8 |
import os
|
9 |
import time
|
10 |
|
@@ -27,7 +28,7 @@ def setup_driver():
|
|
27 |
chrome_options.binary_location = "/usr/bin/chromium-browser"
|
28 |
|
29 |
service = Service("/usr/bin/chromedriver")
|
30 |
-
|
31 |
return driver
|
32 |
|
33 |
def process_selenium_row(index, selenium_rows, driver):
|
|
|
5 |
from selenium.webdriver.support.ui import WebDriverWait
|
6 |
from selenium.webdriver.support import expected_conditions as EC
|
7 |
from bs4 import BeautifulSoup
|
8 |
+
from webdriver_manager.chrome import ChromeDriverManager
|
9 |
import os
|
10 |
import time
|
11 |
|
|
|
28 |
chrome_options.binary_location = "/usr/bin/chromium-browser"
|
29 |
|
30 |
service = Service("/usr/bin/chromedriver")
|
31 |
+
service = ChromeService(ChromeDriverManager().install())
|
32 |
return driver
|
33 |
|
34 |
def process_selenium_row(index, selenium_rows, driver):
|