Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,9 +12,10 @@ from selenium.webdriver.common.keys import Keys
|
|
| 12 |
from selenium.webdriver.common.by import By
|
| 13 |
import time
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
|
|
|
| 18 |
|
| 19 |
def google_search_with_time_filter(query, start_date, end_date):
|
| 20 |
# Mở trang Google
|
|
|
|
| 12 |
from selenium.webdriver.common.by import By
|
| 13 |
import time
|
| 14 |
|
| 15 |
+
|
| 16 |
+
opt = Options()
|
| 17 |
+
opt.add_argument('--headless')
|
| 18 |
+
driver = webdriver.Chrome(options=opt)
|
| 19 |
|
| 20 |
def google_search_with_time_filter(query, start_date, end_date):
|
| 21 |
# Mở trang Google
|