adpro commited on
Commit
06c02bc
·
verified ·
1 Parent(s): 789144a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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
- # Đường dẫn tới ChromeDriver của bạn
16
- PATH = "path_to_chromedriver" # Thay đổi đường dẫn nếu cần
17
- driver = webdriver.Chrome(PATH)
 
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